Richard Sharpe [Fri, 17 May 2002 03:37:37 +0000 (03:37 +0000)]
Changes to allow head to translate NMB flags ...
Tim Potter [Fri, 17 May 2002 02:39:07 +0000 (02:39 +0000)]
Use get_level_value() utility fn.
Cleaned up some local variable naming.
Tim Potter [Fri, 17 May 2002 02:34:49 +0000 (02:34 +0000)]
Add level field when converting FORM_1 to dict.
More error checking when converting from dict to FORM_1.
Tim Potter [Fri, 17 May 2002 02:32:02 +0000 (02:32 +0000)]
addform(), setform():
- call get_level_value() utility function
- removed unused keyword args
- clean up handling of name arg to cli call
deleteform():
- removed unused keyword args
Tim Potter [Fri, 17 May 2002 02:28:26 +0000 (02:28 +0000)]
Call get_level_value() utility function.
Tim Potter [Fri, 17 May 2002 02:25:37 +0000 (02:25 +0000)]
Added a utility function to extract the info key from a dictionary.
Tim Potter [Fri, 17 May 2002 02:24:06 +0000 (02:24 +0000)]
to_struct() now returns a boolean which is false if not all the elements of
the structure were present in the dictionary.
Jim McDonough [Thu, 16 May 2002 20:28:52 +0000 (20:28 +0000)]
Fix for non-__va_copy systems. I had used AC_TRY_COMPILE, but even though
__va_copy wasn't defined, it compiled as though it were a function, but
fails on a link. Oops.
Jim McDonough [Thu, 16 May 2002 20:06:00 +0000 (20:06 +0000)]
Add __va_copy to talloc functions. talloc_asprintf was causing all kinds
of problems on Linux/390 systems...
Jim McDonough [Thu, 16 May 2002 19:59:25 +0000 (19:59 +0000)]
Add configure support for __va_copy, which is required on Linux/390 systems
when assigning on va_list to another, or when passing a va_list as an
argument to a function. Not using it causes segv's and other unpredictable
results.
We need to check all over the place for this...
Jeremy Allison [Thu, 16 May 2002 18:56:26 +0000 (18:56 +0000)]
Fix bug where creating a file and setting a security descriptor atomically
that only contains an "everyone" DACL doesn't apply this to user and group
entries also.
Jeremy.
Gerald Carter [Thu, 16 May 2002 17:19:41 +0000 (17:19 +0000)]
merge from SAMBA_2_2
Tim Potter [Thu, 16 May 2002 07:32:55 +0000 (07:32 +0000)]
Return enumerated forms as a hash of hashes instead of a list of hashes.
Tim Potter [Thu, 16 May 2002 05:45:01 +0000 (05:45 +0000)]
Removed unused variable.
Tim Potter [Thu, 16 May 2002 05:25:53 +0000 (05:25 +0000)]
Renamed 'printer_name' field in python printer info to 'name' to be
more consistent.
Tim Potter [Thu, 16 May 2002 05:24:06 +0000 (05:24 +0000)]
Fix memory leaks and return values in error returns for enumprinters().
Return enumerated printers as a hash of hashes instead of a list of hashes.
Tim Potter [Thu, 16 May 2002 05:19:30 +0000 (05:19 +0000)]
Fix memory leaks and return values in error returns for enumports().
Return enumerated ports as a hash of hashes instead of a list of hashes.
Tim Potter [Thu, 16 May 2002 05:17:43 +0000 (05:17 +0000)]
Set exception object when enumjobs returns non-zero NT status.
Tim Potter [Thu, 16 May 2002 05:16:06 +0000 (05:16 +0000)]
Fix return value for enumprinterdrivers(), getprinterdriverdir().
Set info level key in getprinterdriverdir() return info.
Tim Potter [Thu, 16 May 2002 05:13:50 +0000 (05:13 +0000)]
Shorten some debug messages.
Tim Potter [Thu, 16 May 2002 04:00:31 +0000 (04:00 +0000)]
More cleanups.
- removed dodgy fprintf() error handling
- return an error string from open_pipe_creds() so the appropriate
exception can be raised by the caller
- reformatting
Tim Potter [Thu, 16 May 2002 02:24:22 +0000 (02:24 +0000)]
Refactored open_pipe_creds() function to remove unused parameter.
Tim Potter [Thu, 16 May 2002 02:01:23 +0000 (02:01 +0000)]
Added addjob command.
Tim Potter [Thu, 16 May 2002 01:33:38 +0000 (01:33 +0000)]
Cleaned up help docstrings.
Gerald Carter [Wed, 15 May 2002 23:20:15 +0000 (23:20 +0000)]
merges from SAMBA_2_2
Jim McDonough [Wed, 15 May 2002 19:56:13 +0000 (19:56 +0000)]
Added ability to lookup ldap server, kdc, dc, and master browser. Please
review especially the methods for finding kdc and ldap server when they're
not specified. This is a first attempt...
Gerald Carter [Wed, 15 May 2002 12:34:33 +0000 (12:34 +0000)]
more solaris compile fixes (for smbwrapper)
Tim Potter [Wed, 15 May 2002 06:22:53 +0000 (06:22 +0000)]
Renamed functions that are methods of a printer handle object from
spoolss_* to spoolss_hnd_* to make things a bit clearer.
Tim Potter [Wed, 15 May 2002 06:11:52 +0000 (06:11 +0000)]
make proto
Tim Potter [Wed, 15 May 2002 06:10:45 +0000 (06:10 +0000)]
Method entry for addprinterex()
Tim Potter [Wed, 15 May 2002 06:09:47 +0000 (06:09 +0000)]
Fixed a memory leak in enumprinters.
Started addprinterex() - doesn't work yet.
Tim Potter [Wed, 15 May 2002 06:05:00 +0000 (06:05 +0000)]
Comment that deleteprinterdataex isn't supported by a samba server.
Tim Potter [Wed, 15 May 2002 06:03:09 +0000 (06:03 +0000)]
Return a dictionary of printer drivers in enumprinterdrivers() instead of a
list.
Started addprinterdriver() - doesn't work yet.
Added stubs for deleteprinterdriver routines.
Tim Potter [Wed, 15 May 2002 05:59:12 +0000 (05:59 +0000)]
Implement py_to_DRIVER_INFO_3()
Richard Sharpe [Tue, 14 May 2002 20:19:11 +0000 (20:19 +0000)]
First part of adding flags returns from name_query ...
Do it bit-by-bit to ensure that no breakage creeps in.
Jeremy Allison [Tue, 14 May 2002 19:30:29 +0000 (19:30 +0000)]
Removed lp_strip_dot code - ensured that mangling code treats names ending
in '.' as invalid long filenames (special treatment for '.' and '..' which
are valid - yes Andrew I did this without strlen :-) :-).
Jeremy.
Gerald Carter [Tue, 14 May 2002 14:01:47 +0000 (14:01 +0000)]
segfault fix merged from SAMBA_2_2
Tim Potter [Tue, 14 May 2002 07:21:57 +0000 (07:21 +0000)]
Added deleteprinterdata client rpc.
Tim Potter [Tue, 14 May 2002 07:15:43 +0000 (07:15 +0000)]
Added lots of new functions to the method tables.
Tim Potter [Tue, 14 May 2002 07:14:15 +0000 (07:14 +0000)]
make proto
Tim Potter [Tue, 14 May 2002 07:13:25 +0000 (07:13 +0000)]
Added deleteprinterdata function.
Stub for deleteprinterdataex.
Tim Potter [Tue, 14 May 2002 07:11:31 +0000 (07:11 +0000)]
Fixed bug in enumprinterdrivers.
Added stubs for addprinterdriver and deleteprinterdriver functions.
Tim Potter [Tue, 14 May 2002 07:09:54 +0000 (07:09 +0000)]
Moved PyDict_SetItemString for printer info level structures into conv functions.
Tim Potter [Tue, 14 May 2002 06:37:54 +0000 (06:37 +0000)]
Added writeprinter rpc command.
Tim Potter [Tue, 14 May 2002 06:09:59 +0000 (06:09 +0000)]
Added writeprinter command.
Tim Potter [Tue, 14 May 2002 05:32:45 +0000 (05:32 +0000)]
Change make_spoolss_q_{get,set}printerdata() take a char* and length rather
than a unistr2. Printer data isn't necessarily in unistr format.
Tallocate memory to hold returned data when unmarshalling getprinterdata
and enumprinterdata replies.
Tim Potter [Tue, 14 May 2002 05:27:58 +0000 (05:27 +0000)]
The cli_spoolss_setprinterdata() function interface changed slightly.
Tim Potter [Tue, 14 May 2002 05:26:50 +0000 (05:26 +0000)]
Added getprinterdata and enumprinterdata rpc client routines.
The setprinterdata routine was rewritten slightly to take more arguments.
Tim Potter [Tue, 14 May 2002 05:01:04 +0000 (05:01 +0000)]
Added enumprinterdata.
Tim Potter [Tue, 14 May 2002 02:37:47 +0000 (02:37 +0000)]
General cleanup of compiler warnings etc.
Tim Potter [Mon, 13 May 2002 23:28:11 +0000 (23:28 +0000)]
Don't store domain with username in secrets.tdb
Jeremy Allison [Mon, 13 May 2002 20:52:09 +0000 (20:52 +0000)]
Fix bug where setting end of file length to 8 was hitting erroneous
check for OS/2 EA set. This caused Macromedia movie files to not export
correctly onto a Samba share. Originally spotted by Michel Stoop stoop@ncg.nl.
Jeremy.
Gerald Carter [Mon, 13 May 2002 14:41:55 +0000 (14:41 +0000)]
compile fix merge from SAMBA_2_2
Jim McDonough [Mon, 13 May 2002 14:10:46 +0000 (14:10 +0000)]
Add auto-detect of time server. Uses master browser.
Tim Potter [Mon, 13 May 2002 07:30:41 +0000 (07:30 +0000)]
Added entry for winreg extension.
Added extra source file for printerdata routines.
Tim Potter [Mon, 13 May 2002 07:29:38 +0000 (07:29 +0000)]
Updated patch.
Tim Potter [Mon, 13 May 2002 07:28:16 +0000 (07:28 +0000)]
Removed irritating CR at end of file.
Tim Potter [Mon, 13 May 2002 07:27:20 +0000 (07:27 +0000)]
Added getprinterdata and setprinterdata functions.
Tim Potter [Mon, 13 May 2002 06:04:07 +0000 (06:04 +0000)]
Registry module. Only contains REG_xxx constants used by the spoolss
printerdata routines at the moment.
Tim Potter [Mon, 13 May 2002 03:25:23 +0000 (03:25 +0000)]
RPC client function for startdocprinter and enddocprinter.
Tim Potter [Mon, 13 May 2002 03:18:19 +0000 (03:18 +0000)]
Support for client side startdocprinter.
Set useless_ptr = 1 for marshalling smb_io_doc_info() so it actually works.
Tim Potter [Mon, 13 May 2002 01:55:04 +0000 (01:55 +0000)]
Added startdocprinter and enddocprinter.
Tim Potter [Mon, 13 May 2002 00:44:46 +0000 (00:44 +0000)]
Merge of --set-auth-user updates from 2.2
Tim Potter [Mon, 13 May 2002 00:23:06 +0000 (00:23 +0000)]
Merge of secrets_init() paranoia fix from 2.2
Simo Sorce [Sat, 11 May 2002 16:55:59 +0000 (16:55 +0000)]
move vsyslog() from snprintf.c to replace.c
tx Elrond for prosecuting cleanness :)
Gerald Carter [Sat, 11 May 2002 03:30:21 +0000 (03:30 +0000)]
merge from SAMBA_2_2
Jeremy Allison [Sat, 11 May 2002 00:36:33 +0000 (00:36 +0000)]
Fix for *BSD linking of VFS modules from "Scot W. Hetzel" <hetzels@westbend.net>
Jeremy.
Jeremy Allison [Sat, 11 May 2002 00:33:51 +0000 (00:33 +0000)]
Fixes for recycle bin VFS for FreeBSD from "Scot W. Hetzel" <hetzels@westbend.net>.
Jeremy
Jeremy Allison [Sat, 11 May 2002 00:25:49 +0000 (00:25 +0000)]
Fix to include -Ipopt in getpass test.
Jeremy.
Gerald Carter [Fri, 10 May 2002 16:19:53 +0000 (16:19 +0000)]
misc merge from SAMBA_2_2
Gerald Carter [Fri, 10 May 2002 16:19:05 +0000 (16:19 +0000)]
devmode parsing merge from SAMBA_2_2
Andrew Bartlett [Fri, 10 May 2002 14:40:55 +0000 (14:40 +0000)]
Allow -c to specify the location of the config file, and fix up some handling
of non-existant passdb cases.
Tim Potter [Fri, 10 May 2002 03:17:44 +0000 (03:17 +0000)]
Added findsmb to .cvsignore list.
Tim Potter [Fri, 10 May 2002 03:02:22 +0000 (03:02 +0000)]
Fix for Solaris nscd issue pointed out by Mike Gerdts
<Michael.Gerdts@alcatel.com>. The struct passwd in Solaris contains some
extra fields which must be initialised otherwise nscd crashes.
Tim Potter [Fri, 10 May 2002 02:06:14 +0000 (02:06 +0000)]
Removed libtool.m4 includes.
Jeremy Allison [Fri, 10 May 2002 01:15:36 +0000 (01:15 +0000)]
Fix the bug that refused to allow IPC$ connection to be idled if a pipe
was open - we now only refuse to allow IPC$ connection to be idled if a
handle is open on a pipe.
Jeremy.
Jim McDonough [Fri, 10 May 2002 00:08:54 +0000 (00:08 +0000)]
Ok, ok, I was too impatient...
Jim McDonough [Fri, 10 May 2002 00:07:37 +0000 (00:07 +0000)]
Fix build. Changed MSG_PRINTER_UPDATE to MSG_PRINTER_DRVUPGRADE.
Jeremy, please verify that this was ok...
Jeremy Allison [Fri, 10 May 2002 00:06:45 +0000 (00:06 +0000)]
Oops. Broke the build be removing MSG_PRINTER_UPDATE. Re-added as next
free printer msg id.
Jeremy.
Jim McDonough [Thu, 9 May 2002 23:49:40 +0000 (23:49 +0000)]
Converged net group command.
Jim McDonough [Thu, 9 May 2002 23:49:28 +0000 (23:49 +0000)]
Add ads group add and delete, allowing converged net group command.
Also update some of the help info.
Jim McDonough [Thu, 9 May 2002 23:47:26 +0000 (23:47 +0000)]
Start of net rpc group command. List only right now. Add and delete have
not been implemented...is it worth the effort?
Jim McDonough [Thu, 9 May 2002 23:46:01 +0000 (23:46 +0000)]
Converged help on net group command.
Jim McDonough [Thu, 9 May 2002 23:44:46 +0000 (23:44 +0000)]
Add ads group account add function.
Jeremy Allison [Thu, 9 May 2002 19:54:47 +0000 (19:54 +0000)]
Merged in printing fixes... There were many missing !
Jeremy
Shirish Kalele [Thu, 9 May 2002 18:58:03 +0000 (18:58 +0000)]
Allowing %S in dfs root paths. Other variables in standard_sub_advanced won't
resolve correctly in dfs referrals which are done over anonymous IPC$.
Also allowing dfs roots to be default services.
Jeremy Allison [Thu, 9 May 2002 17:44:42 +0000 (17:44 +0000)]
NT uses NT_STATUS_OBJECT_NAME_NOT_FOUND not NT_STATUS_NO_SUCH_FILE for ENOENT.
Jeremy.
Jeremy Allison [Thu, 9 May 2002 17:38:23 +0000 (17:38 +0000)]
We were mapping the open of name1/name2 where name1 wasn't a directory
(ie. ENOTDIR) to the NT status code NT_STATUS_NOT_A_DIRECTORY. NT seems
to use NT_STATUS_OBJECT_PATH_NOT_FOUND. I'm hoping this will fix the
access binaries served from a Samba share bug...
Jeremy.
Gerald Carter [Thu, 9 May 2002 17:35:42 +0000 (17:35 +0000)]
merge from SAMBA_2_2
Gerald Carter [Thu, 9 May 2002 14:20:05 +0000 (14:20 +0000)]
merge freom SAMBA_2_2
Gerald Carter [Thu, 9 May 2002 13:52:06 +0000 (13:52 +0000)]
merge from SAMBA_2_2
Gerald Carter [Thu, 9 May 2002 04:44:00 +0000 (04:44 +0000)]
merge from SAMBA_2_2: remove -symbolic from pam_smbpass linker flags
Shirish Kalele [Thu, 9 May 2002 04:43:05 +0000 (04:43 +0000)]
Sync'ing SAMBA_2_2 with HEAD.
Gerald Carter [Thu, 9 May 2002 04:12:15 +0000 (04:12 +0000)]
merge from SAMBA_2_2
Gerald Carter [Thu, 9 May 2002 04:11:58 +0000 (04:11 +0000)]
couple of PIDDIR merges I missed
Gerald Carter [Thu, 9 May 2002 04:11:18 +0000 (04:11 +0000)]
HP-UX 10.20 compiles fixes from SAMBA_2_2
Gerald Carter [Thu, 9 May 2002 04:08:00 +0000 (04:08 +0000)]
pidfile merge from SAMBA_2_2 (including --with-fhs) and a few other minor things; compiles and shouldnt break, but needs testing
Gerald Carter [Thu, 9 May 2002 04:05:37 +0000 (04:05 +0000)]
compile fixes; needs testing
Jeremy Allison [Wed, 8 May 2002 23:15:42 +0000 (23:15 +0000)]
Merge in Jerry's called name fix.
Jeremy.
Gerald Carter [Wed, 8 May 2002 15:37:14 +0000 (15:37 +0000)]
merging some changes from SAMBA_2_2