jerry/samba.git
22 years agoChanges to allow head to translate NMB flags ...
Richard Sharpe [Fri, 17 May 2002 03:37:37 +0000 (03:37 +0000)]
Changes to allow head to translate NMB flags ...

22 years agoUse get_level_value() utility fn.
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.

22 years agoAdd level field when converting FORM_1 to dict.
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.

22 years agoaddform(), setform():
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

22 years agoCall get_level_value() utility function.
Tim Potter [Fri, 17 May 2002 02:28:26 +0000 (02:28 +0000)]
Call get_level_value() utility function.

22 years agoAdded a utility function to extract the info key from a dictionary.
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.

22 years agoto_struct() now returns a boolean which is false if not all the elements of
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.

22 years agoFix for non-__va_copy systems. I had used AC_TRY_COMPILE, but even though
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.

22 years agoAdd __va_copy to talloc functions. talloc_asprintf was causing all kinds
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...

22 years agoAdd configure support for __va_copy, which is required 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...

22 years agoFix bug where creating a file and setting a security descriptor atomically
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.

22 years agomerge from SAMBA_2_2
Gerald Carter [Thu, 16 May 2002 17:19:41 +0000 (17:19 +0000)]
merge from SAMBA_2_2

22 years agoReturn enumerated forms as a hash of hashes instead of a list of hashes.
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.

22 years agoRemoved unused variable.
Tim Potter [Thu, 16 May 2002 05:45:01 +0000 (05:45 +0000)]
Removed unused variable.

22 years agoRenamed 'printer_name' field in python printer info to 'name' to be
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.

22 years agoFix memory leaks and return values in error returns for enumprinters().
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.

22 years agoFix memory leaks and return values in error returns for enumports().
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.

22 years agoSet exception object when enumjobs returns non-zero NT status.
Tim Potter [Thu, 16 May 2002 05:17:43 +0000 (05:17 +0000)]
Set exception object when enumjobs returns non-zero NT status.

22 years agoFix return value for enumprinterdrivers(), getprinterdriverdir().
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.

22 years agoShorten some debug messages.
Tim Potter [Thu, 16 May 2002 05:13:50 +0000 (05:13 +0000)]
Shorten some debug messages.

22 years agoMore cleanups.
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

22 years agoRefactored open_pipe_creds() function to remove unused parameter.
Tim Potter [Thu, 16 May 2002 02:24:22 +0000 (02:24 +0000)]
Refactored open_pipe_creds() function to remove unused parameter.

22 years agoAdded addjob command.
Tim Potter [Thu, 16 May 2002 02:01:23 +0000 (02:01 +0000)]
Added addjob command.

22 years agoCleaned up help docstrings.
Tim Potter [Thu, 16 May 2002 01:33:38 +0000 (01:33 +0000)]
Cleaned up help docstrings.

22 years agomerges from SAMBA_2_2
Gerald Carter [Wed, 15 May 2002 23:20:15 +0000 (23:20 +0000)]
merges from SAMBA_2_2

22 years agoAdded ability to lookup ldap server, kdc, dc, and master browser. Please
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...

22 years agomore solaris compile fixes (for smbwrapper)
Gerald Carter [Wed, 15 May 2002 12:34:33 +0000 (12:34 +0000)]
more solaris compile fixes (for smbwrapper)

22 years agoRenamed functions that are methods of a printer handle object from
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.

22 years agomake proto
Tim Potter [Wed, 15 May 2002 06:11:52 +0000 (06:11 +0000)]
make proto

22 years agoMethod entry for addprinterex()
Tim Potter [Wed, 15 May 2002 06:10:45 +0000 (06:10 +0000)]
Method entry for addprinterex()

22 years agoFixed a memory leak in enumprinters.
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.

22 years agoComment that deleteprinterdataex isn't supported by a samba server.
Tim Potter [Wed, 15 May 2002 06:05:00 +0000 (06:05 +0000)]
Comment that deleteprinterdataex isn't supported by a samba server.

22 years agoReturn a dictionary of printer drivers in enumprinterdrivers() instead of a
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.

22 years agoImplement py_to_DRIVER_INFO_3()
Tim Potter [Wed, 15 May 2002 05:59:12 +0000 (05:59 +0000)]
Implement py_to_DRIVER_INFO_3()

22 years agoFirst part of adding flags returns from name_query ...
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.

22 years agoRemoved lp_strip_dot code - ensured that mangling code treats names ending
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.

22 years agosegfault fix merged from SAMBA_2_2
Gerald Carter [Tue, 14 May 2002 14:01:47 +0000 (14:01 +0000)]
segfault fix merged from SAMBA_2_2

22 years agoAdded deleteprinterdata client rpc.
Tim Potter [Tue, 14 May 2002 07:21:57 +0000 (07:21 +0000)]
Added deleteprinterdata client rpc.

22 years agoAdded lots of new functions to the method tables.
Tim Potter [Tue, 14 May 2002 07:15:43 +0000 (07:15 +0000)]
Added lots of new functions to the method tables.

22 years agomake proto
Tim Potter [Tue, 14 May 2002 07:14:15 +0000 (07:14 +0000)]
make proto

22 years agoAdded deleteprinterdata function.
Tim Potter [Tue, 14 May 2002 07:13:25 +0000 (07:13 +0000)]
Added deleteprinterdata function.

Stub for deleteprinterdataex.

22 years agoFixed bug in enumprinterdrivers.
Tim Potter [Tue, 14 May 2002 07:11:31 +0000 (07:11 +0000)]
Fixed bug in enumprinterdrivers.

Added stubs for addprinterdriver and deleteprinterdriver functions.

22 years agoMoved PyDict_SetItemString for printer info level structures into conv 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.

22 years agoAdded writeprinter rpc command.
Tim Potter [Tue, 14 May 2002 06:37:54 +0000 (06:37 +0000)]
Added writeprinter rpc command.

22 years agoAdded writeprinter command.
Tim Potter [Tue, 14 May 2002 06:09:59 +0000 (06:09 +0000)]
Added writeprinter command.

22 years agoChange make_spoolss_q_{get,set}printerdata() take a char* and length rather
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.

22 years agoThe cli_spoolss_setprinterdata() function interface changed slightly.
Tim Potter [Tue, 14 May 2002 05:27:58 +0000 (05:27 +0000)]
The cli_spoolss_setprinterdata() function interface changed slightly.

22 years agoAdded getprinterdata and enumprinterdata rpc client routines.
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.

22 years agoAdded enumprinterdata.
Tim Potter [Tue, 14 May 2002 05:01:04 +0000 (05:01 +0000)]
Added enumprinterdata.

22 years agoGeneral cleanup of compiler warnings etc.
Tim Potter [Tue, 14 May 2002 02:37:47 +0000 (02:37 +0000)]
General cleanup of compiler warnings etc.

22 years agoDon't store domain with username in secrets.tdb
Tim Potter [Mon, 13 May 2002 23:28:11 +0000 (23:28 +0000)]
Don't store domain with username in secrets.tdb

22 years agoFix bug where setting end of file length to 8 was hitting erroneous
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.

22 years agocompile fix merge from SAMBA_2_2
Gerald Carter [Mon, 13 May 2002 14:41:55 +0000 (14:41 +0000)]
compile fix merge from SAMBA_2_2

22 years agoAdd auto-detect of time server. Uses master browser.
Jim McDonough [Mon, 13 May 2002 14:10:46 +0000 (14:10 +0000)]
Add auto-detect of time server.  Uses master browser.

22 years agoAdded entry for winreg extension.
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.

22 years agoUpdated patch.
Tim Potter [Mon, 13 May 2002 07:29:38 +0000 (07:29 +0000)]
Updated patch.

22 years agoRemoved irritating CR at end of file.
Tim Potter [Mon, 13 May 2002 07:28:16 +0000 (07:28 +0000)]
Removed irritating CR at end of file.

22 years agoAdded getprinterdata and setprinterdata functions.
Tim Potter [Mon, 13 May 2002 07:27:20 +0000 (07:27 +0000)]
Added getprinterdata and setprinterdata functions.

22 years agoRegistry module. Only contains REG_xxx constants used by the spoolss
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.

22 years agoRPC client function for startdocprinter and enddocprinter.
Tim Potter [Mon, 13 May 2002 03:25:23 +0000 (03:25 +0000)]
RPC client function for startdocprinter and enddocprinter.

22 years agoSupport for client side startdocprinter.
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.

22 years agoAdded startdocprinter and enddocprinter.
Tim Potter [Mon, 13 May 2002 01:55:04 +0000 (01:55 +0000)]
Added startdocprinter and enddocprinter.

22 years agoMerge of --set-auth-user updates from 2.2
Tim Potter [Mon, 13 May 2002 00:44:46 +0000 (00:44 +0000)]
Merge of --set-auth-user updates from 2.2

22 years agoMerge of secrets_init() paranoia fix 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

22 years agomove vsyslog() from snprintf.c to replace.c
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 :)

22 years agomerge from SAMBA_2_2
Gerald Carter [Sat, 11 May 2002 03:30:21 +0000 (03:30 +0000)]
merge from SAMBA_2_2

22 years agoFix for *BSD linking of VFS modules from "Scot W. Hetzel" <hetzels@westbend.net>
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.

22 years agoFixes for recycle bin VFS for FreeBSD from "Scot W. Hetzel" <hetzels@westbend.net>.
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

22 years agoFix to include -Ipopt in getpass test.
Jeremy Allison [Sat, 11 May 2002 00:25:49 +0000 (00:25 +0000)]
Fix to include -Ipopt in getpass test.
Jeremy.

22 years agomisc merge from SAMBA_2_2
Gerald Carter [Fri, 10 May 2002 16:19:53 +0000 (16:19 +0000)]
misc merge from SAMBA_2_2

22 years agodevmode parsing 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

22 years agoAllow -c to specify the location of the config file, and fix up some handling
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.

22 years agoAdded findsmb to .cvsignore list.
Tim Potter [Fri, 10 May 2002 03:17:44 +0000 (03:17 +0000)]
Added findsmb to .cvsignore list.

22 years agoFix for Solaris nscd issue pointed out by Mike Gerdts
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.

22 years agoRemoved libtool.m4 includes.
Tim Potter [Fri, 10 May 2002 02:06:14 +0000 (02:06 +0000)]
Removed libtool.m4 includes.

22 years agoFix the bug that refused to allow IPC$ connection to be idled if a pipe
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.

22 years agoOk, ok, I was too impatient...
Jim McDonough [Fri, 10 May 2002 00:08:54 +0000 (00:08 +0000)]
Ok, ok, I was too impatient...

22 years agoFix build. Changed MSG_PRINTER_UPDATE to MSG_PRINTER_DRVUPGRADE.
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...

22 years agoOops. Broke the build be removing MSG_PRINTER_UPDATE. Re-added as next
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.

22 years agoConverged net group command.
Jim McDonough [Thu, 9 May 2002 23:49:40 +0000 (23:49 +0000)]
Converged net group command.

22 years agoAdd ads group add and delete, allowing 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.

22 years agoStart of net rpc group command. List only right now. Add and delete have
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?

22 years agoConverged help on net group command.
Jim McDonough [Thu, 9 May 2002 23:46:01 +0000 (23:46 +0000)]
Converged help on net group command.

22 years agoAdd ads group account add function.
Jim McDonough [Thu, 9 May 2002 23:44:46 +0000 (23:44 +0000)]
Add ads group account add function.

22 years agoMerged in printing fixes... There were many missing !
Jeremy Allison [Thu, 9 May 2002 19:54:47 +0000 (19:54 +0000)]
Merged in printing fixes... There were many missing !
Jeremy

22 years agoAllowing %S in dfs root paths. Other variables in standard_sub_advanced won't
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.

22 years agoNT uses NT_STATUS_OBJECT_NAME_NOT_FOUND not NT_STATUS_NO_SUCH_FILE for ENOENT.
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.

22 years agoWe were mapping the open of name1/name2 where name1 wasn't a directory
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.

22 years agomerge from SAMBA_2_2
Gerald Carter [Thu, 9 May 2002 17:35:42 +0000 (17:35 +0000)]
merge from SAMBA_2_2

22 years agomerge freom SAMBA_2_2
Gerald Carter [Thu, 9 May 2002 14:20:05 +0000 (14:20 +0000)]
merge freom SAMBA_2_2

22 years agomerge from SAMBA_2_2
Gerald Carter [Thu, 9 May 2002 13:52:06 +0000 (13:52 +0000)]
merge from SAMBA_2_2

22 years agomerge from SAMBA_2_2: remove -symbolic from pam_smbpass linker flags
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

22 years agoSync'ing SAMBA_2_2 with HEAD.
Shirish Kalele [Thu, 9 May 2002 04:43:05 +0000 (04:43 +0000)]
Sync'ing SAMBA_2_2 with HEAD.

22 years agomerge from SAMBA_2_2
Gerald Carter [Thu, 9 May 2002 04:12:15 +0000 (04:12 +0000)]
merge from SAMBA_2_2

22 years agocouple of PIDDIR merges I missed
Gerald Carter [Thu, 9 May 2002 04:11:58 +0000 (04:11 +0000)]
couple of PIDDIR merges I missed

22 years agoHP-UX 10.20 compiles fixes from SAMBA_2_2
Gerald Carter [Thu, 9 May 2002 04:11:18 +0000 (04:11 +0000)]
HP-UX 10.20 compiles fixes from SAMBA_2_2

22 years agopidfile merge from SAMBA_2_2 (including --with-fhs) and a few other minor things...
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

22 years agocompile fixes; needs testing
Gerald Carter [Thu, 9 May 2002 04:05:37 +0000 (04:05 +0000)]
compile fixes; needs testing

22 years agoMerge in Jerry's called name fix.
Jeremy Allison [Wed, 8 May 2002 23:15:42 +0000 (23:15 +0000)]
Merge in Jerry's called name fix.
Jeremy.

22 years agomerging some changes from SAMBA_2_2
Gerald Carter [Wed, 8 May 2002 15:37:14 +0000 (15:37 +0000)]
merging some changes from SAMBA_2_2