kai/samba.git
17 years agoMove client_receive_smb to clientgen.c as a static, as proposed by Elrond.
Andrew Bartlett [Sat, 18 May 2002 13:19:38 +0000 (13:19 +0000)]
Move client_receive_smb to clientgen.c as a static, as proposed by Elrond.

(only function that used it was unused, and this helps bring TNG and HEAD
closer)

Its also cleaner.

Andrew Bartlett
(This used to be commit 78f47c83332a6408a718a3dee45645935638b364)

17 years agoOops, I missed commiting this earlier.
Andrew Bartlett [Sat, 18 May 2002 11:38:50 +0000 (11:38 +0000)]
Oops, I missed commiting this earlier.

The idea is that pdb_add_sam_account() should have a non-const SAM_ACCOUNT,
and update some of the the properties generated during the add.

Andrew Bartlett
(This used to be commit b014d9ae4bc38d83d474888b73d350a62704341f)

17 years agoRemove const from some functions to match the changed prototype in a
Andrew Bartlett [Sat, 18 May 2002 09:32:59 +0000 (09:32 +0000)]
Remove const from some functions to match the changed prototype in a
previous commit, and remove some unsued variables.

Main change:  Make sure to fill in the username when making a non-unix
account from smbpasswd.
(This used to be commit 7019486eacb72ca44c42ce620b8696bb29f12292)

17 years agoPassdb:
Andrew Bartlett [Sat, 18 May 2002 09:06:23 +0000 (09:06 +0000)]
Passdb:

Kill off the silly code that attempts to do NT -> Unix username mapping.
This is done well before here, no need to repeat it.

Add some small fixes and extra debugs, trying to track down current build
farm failures.

pdb_unix:

When 'updating' a pdb_unix account, instead add it to the default passdb.
This means that you don't need to specify '-a' to smbpasswd any more when
messing with an existing unix user, the account is simply 'upgraded'.

The idea here is that these accounts are just as 'real' as any other, they
just don't have the extra attributes an smbpasswd file does.

I'm open for debate on the pdb_unix issue, and will remove it if given
good reason.  (without this, an attempt to add an account already in
pdb_unix to smbpasswd would fail, as it would fail to update pdb_unix).

rpc_server/srv_netlog_nt.c

Change a couple of things around, so as to show the client workstation etc.

WRONG_PASSWORD is certainly not the right default error.  Try ACCESS_DENIED
for now.

Andrew Bartlett
(This used to be commit d78b74b338df9accd9ad84c56a49fa4f787425e2)

17 years agoInclude the extra #define for the last set of smbpasswd mods.
Andrew Bartlett [Sat, 18 May 2002 08:59:04 +0000 (08:59 +0000)]
Include the extra #define for the last set of smbpasswd mods.
(This used to be commit bf82ac14c826a765b33d368e4cb62c7fb3cd3c4f)

17 years agoMake smbpasswd at least slightly sane. This kills off some of the
Andrew Bartlett [Sat, 18 May 2002 08:57:25 +0000 (08:57 +0000)]
Make smbpasswd at least slightly sane.  This kills off some of the
silly global variables, and makes it come closer to a clean compile.

I'm still not convinced what was wrong with the previous code, at least
it didn't cause a gush of warnings...

In any case, we now don't need to spegetti code gotos etc.

This should really be redone with popt.

Andrew Bartlett
(This used to be commit d9330f10447f199a5a73803579ce3b1253f4d02c)

17 years agoAs per rsharpe's request, require only a Masters in Astrophysics to
Andrew Bartlett [Sat, 18 May 2002 06:42:50 +0000 (06:42 +0000)]
As per rsharpe's request, require only a Masters in Astrophysics to
correctly configure winbind.

(Next job:  Fill in the 'error_msg' field with somthing useful)
(This used to be commit 49ee2a25c131641887cbc438a6336652f042cfb0)

17 years agoA few things in this commit:
Andrew Bartlett [Sat, 18 May 2002 05:52:52 +0000 (05:52 +0000)]
A few things in this commit:

cleanup some of the code in net_rpc_join re const warnings and
fstrings.

Passdb:

Make the %u and %U substituions in passdb work.
This is done by declaring these paramters to be 'const' and doing
the substitution manually.  I'm told this is us going full circle,
but I can't really see a better way.

Finally these things actually seem to work properly...

Make the lanman code use the pdb's recorded values for homedir etc
rather than the values from lp_*()

Add code to set the plaintext password in the passdb, where it can
decide how to store/set it.  For use with a future 'ldap password
change' option, or somthing like that...

Add pdb_unix, so as to remove the 'not in passdb' special cases from the
local_lookup_*() code.  Quite small, as it uses the new 'struct passwd ->
SAM_ACCOUNT' code that is now in just one place.  (also used by pdb_smbpasswd)

Other:
Fix up the adding of [homes] at session setup time to actually pass
the right string, that is the unix homedir, not the UNC path.

Fix up [homes] so that for winbind users is picks the correct name.
(bad interactions with the default domain code previously)

Change the rpc_server/srv_lsa_nt.c code to match NT when for the
SATUS_NONE_MAPPED reply:  This was only being triggered on
no queries, now it is on the 'no mappings' (ie all mappings failed).
Checked against Win2k.

Policy Question:  Should SID -> unix_user.234/unix_group.364 be
considered a mapping or not?  Currently it isn't.

Andrew Bartlett
(This used to be commit c28668068b5a3b3cf3c4317e5fb32ec9957f3e34)

17 years agoDon't forget the semicolon, you fool!
Jim McDonough [Fri, 17 May 2002 14:55:50 +0000 (14:55 +0000)]
Don't forget the semicolon, you fool!
(This used to be commit 1c9387330f776b9b96714f9c9c62087bbd32f7b6)

17 years agoMake --with-ldapsam 'go away'. This is now a standard, stable, feature
Andrew Bartlett [Fri, 17 May 2002 14:51:55 +0000 (14:51 +0000)]
Make --with-ldapsam 'go away'.  This is now a standard, stable, feature
and there is no real reason for it to depend on more than the abilty
to compile the code.
(This used to be commit 64aaec137e39595e6e61b55eb525615683a1393c)

17 years agoFix usage of va_list passed as an arg. Use __va_copy before using it
Jim McDonough [Fri, 17 May 2002 14:51:22 +0000 (14:51 +0000)]
Fix usage of va_list passed as an arg.  Use __va_copy before using it
when it exists.
(This used to be commit 85ab07bdc1b2ce7b2c1b8197fad45124b1460dca)

17 years agoThis is meant to be accessed via the helper fn, not directly.
Andrew Bartlett [Fri, 17 May 2002 14:35:54 +0000 (14:35 +0000)]
This is meant to be accessed via the helper fn, not directly.
(This used to be commit b84882a628b3f2f0890322f25694c1932aa3e5ec)

17 years agoMake non-static for some later work (pushing the info3 across the winbind
Andrew Bartlett [Fri, 17 May 2002 14:27:42 +0000 (14:27 +0000)]
Make non-static for some later work (pushing the info3 across the winbind
pipe for smbd to decode), and fix up the debug.  (At least I assume it is
wrong, can an expert care to comment?)
(This used to be commit e5b4331ffa99d769b062053d6afc4772355fa5b2)

17 years agoAdd a touch of const
Andrew Bartlett [Fri, 17 May 2002 14:26:20 +0000 (14:26 +0000)]
Add a touch of const
(This used to be commit 3e93b216ddba14592a0193664c5d6bcbef898f1a)

17 years agoCheck paramters for NULL.
Andrew Bartlett [Fri, 17 May 2002 14:23:43 +0000 (14:23 +0000)]
Check paramters for NULL.
(This used to be commit 078e81530e9bc4e5f0b8e18aff0488386bce29a5)

17 years agoMake Get_Pwnam use getpwnam_alloc() in an attempt to make it segfault rather
Andrew Bartlett [Fri, 17 May 2002 14:19:36 +0000 (14:19 +0000)]
Make Get_Pwnam use getpwnam_alloc() in an attempt to make it segfault rather
than allow silent reuse of stale static buffer.

Next step is to make this fn return that allocated buffer.
(This used to be commit e1daf816f3d809d288313fe2db98b5a731c93a79)

17 years agoindent
Andrew Bartlett [Fri, 17 May 2002 14:15:47 +0000 (14:15 +0000)]
indent
(This used to be commit 173aac4a810782dddc85494c328a6917cb3fe0c2)

17 years agoA few more trusted domains updates from mimir.
Andrew Bartlett [Fri, 17 May 2002 13:49:01 +0000 (13:49 +0000)]
A few more trusted domains updates from mimir.

I think we may still need to look at our server enumeration code, but
other than that, its much better in the tree than out.

Andrew Bartlett
(This used to be commit d57a1b4629d12a0374cc6d74dfc6f5d4793fcef8)

17 years agoAdd an item about the __va_copy macro to prevent SEGV's on 390 and PPC Linux.
Jim McDonough [Fri, 17 May 2002 13:13:15 +0000 (13:13 +0000)]
Add an item about the __va_copy macro to prevent SEGV's on 390 and PPC Linux.
(This used to be commit 443ba282be79e2b7259950fffbd7fe9bb4cabf8c)

17 years agoThis removes --with-ssl from Samba.
Andrew Bartlett [Fri, 17 May 2002 12:42:39 +0000 (12:42 +0000)]
This removes --with-ssl from Samba.

This option was badly maintained, useless and confused our users and
distirbutors.  (its SSL, therfore it must be good...)

No windows client uses this protocol without help from an SSL tunnel.

I can't see any reason why setting up a unix-side SSL wrapper would
be any more difficult than the > 10 config options this mess added
to samba in any case.

On the Samba client end, I think the LIBSMB_PROG hack should be
sufficient to start stunnel on the unix side.  We might extend this
to take %i and %p (IP and port) if there is demand.

Andrew Bartlett
(This used to be commit b04561d3fd3ee732877790fb4193b20ad72a75f8)

17 years agoUpdate the doco for the LDAP options in smb.conf, in line with code changes
Andrew Bartlett [Fri, 17 May 2002 11:10:34 +0000 (11:10 +0000)]
Update the doco for the LDAP options in smb.conf, in line with code changes
a little while back.  We might have to look at the migration path for these
options.  (or as --with-ldap has always been 'experimental' we could ignore
it...)

Andrew Bartlett
(This used to be commit 35e909b33870f6c5d8af9398d6f9f816e83e2ca4)

17 years agomore dl* -> sys_dl* for sco
Andrew Bartlett [Fri, 17 May 2002 10:54:26 +0000 (10:54 +0000)]
more dl* -> sys_dl* for sco
(This used to be commit 92eead1a0a93a6191fbd7b413f0736eb1a716b8e)

17 years agoMakes winbindd_proto handling consistent with the other header files,
Martin Pool [Fri, 17 May 2002 06:59:04 +0000 (06:59 +0000)]
Makes winbindd_proto handling consistent with the other header files,
so that at least "make clean; make all" doesn't fail.

It's still not safe for parallel builds, i.e. "make clean; make -j3
all" will probably crash, but "make clean; make proto && make -j3 all"
seems OK.  I'm not sure if it is possible to solve that and still
support ancient non-GNU versions of Make.
(This used to be commit 4d202c19997d4219e7f607a725123d5606b9bd8a)

17 years agoGet the sco boxes compiling again - use the sys_ intefaces for all the dl*
Andrew Bartlett [Fri, 17 May 2002 06:15:06 +0000 (06:15 +0000)]
Get the sco boxes compiling again - use the sys_ intefaces for all the dl*
funcitons.
(This used to be commit c37c1e39253d9d21f8ab38ab8d24f7e787008596)

17 years agoNT sends the server name prepended with \\ for a enumerate printers RPC
Tim Potter [Fri, 17 May 2002 05:33:48 +0000 (05:33 +0000)]
NT sends the server name prepended with \\ for a enumerate printers RPC
call so we probably should as well.
(This used to be commit 39c0218e5b4132e60401c2fc25fcbc88be94f87f)

17 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 ...
(This used to be commit c986a19cde0dfa96b512eb24d873203981e68c48)

17 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.
(This used to be commit d4c7a85c2b5c45f1cc3273230d80a1d5923cd848)

17 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.
(This used to be commit 608b9ab29dca820d29a40a2c5df86c1ff7e751a9)

17 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
(This used to be commit c9c2aac9035a11e3fe2d320504097b98a426dd63)

17 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.
(This used to be commit 2566dad274e0bced9e55cbc3c126c00e70373fbe)

17 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.
(This used to be commit 4cafbcb205af11c478a2d9047554315915933e5d)

17 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.
(This used to be commit b26d9d793914b66050c374ec2c0e94fa37c7e0e4)

17 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.
(This used to be commit d3222ecd1a024fd2e7ba72b1bc10a400d398a364)

17 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...
(This used to be commit 2605e483b309e62b4c5d39a2ac6d8b2257bb5a87)

17 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...
(This used to be commit 331132678c2e25e5f220de34968f6b16f4fbbc97)

17 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.
(This used to be commit 2f67f39d219bbe110d52ed2680fd8ac57946756f)

17 years agomerge from SAMBA_2_2
Gerald Carter [Thu, 16 May 2002 17:19:41 +0000 (17:19 +0000)]
merge from SAMBA_2_2
(This used to be commit d8e8f13f7231c2b2874fdca7f3600acb69e48df4)

17 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.
(This used to be commit 2f86f01b88ccaaeee97588f339ebaeae5c4c06e9)

17 years agoRemoved unused variable.
Tim Potter [Thu, 16 May 2002 05:45:01 +0000 (05:45 +0000)]
Removed unused variable.
(This used to be commit 8d2f77ce956711f2afbadbeee50d82fbec9047dc)

17 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.
(This used to be commit f8c198b74899d1be1725d0647c5f0cd7db870340)

17 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.
(This used to be commit 1d0fd34d42e286fe7a41ca2d122f6bd7dc958b0a)

17 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.
(This used to be commit c469ada3d3b12b6a6e243d004faaae5f96cd3d96)

17 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.
(This used to be commit b1818eb37572f4d30efef998d926ac111e78cb48)

17 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.
(This used to be commit cb4bfd39eb83efddb29b3a3bc70c2a8713f80ef2)

17 years agoShorten some debug messages.
Tim Potter [Thu, 16 May 2002 05:13:50 +0000 (05:13 +0000)]
Shorten some debug messages.
(This used to be commit 179c68bd0db7c2631fcf052a746acacedf3c47ac)

17 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
(This used to be commit d35cad359df3bd53e6bb49f6655d4c7b9993abb0)

17 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.
(This used to be commit 36ed06cb5078429445f3bbb0f69baa2e0f8356a4)

17 years agoAdded addjob command.
Tim Potter [Thu, 16 May 2002 02:01:23 +0000 (02:01 +0000)]
Added addjob command.
(This used to be commit e4cc7e2d521cb2777c15c00ec222342e2a0b02ca)

17 years agoCleaned up help docstrings.
Tim Potter [Thu, 16 May 2002 01:33:38 +0000 (01:33 +0000)]
Cleaned up help docstrings.
(This used to be commit a8fcb151f8ff601774c302b61e694b4522461068)

17 years agomerges from SAMBA_2_2
Gerald Carter [Wed, 15 May 2002 23:20:15 +0000 (23:20 +0000)]
merges from SAMBA_2_2
(This used to be commit 91f569a691be893e1a02c659a8f0753970fadbae)

17 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...
(This used to be commit 5edccb51b94a80bbb3ecd59602393887286c8074)

17 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)
(This used to be commit fbefb479fb3bd86affffa1bd567565f1797ae329)

17 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.
(This used to be commit 986d868837350e9b107c147e649f139fd7d881f0)

17 years agomake proto
Tim Potter [Wed, 15 May 2002 06:11:52 +0000 (06:11 +0000)]
make proto
(This used to be commit 4fe9f83998a3b669b2190b0c71908fe2d9f915fd)

17 years agoMethod entry for addprinterex()
Tim Potter [Wed, 15 May 2002 06:10:45 +0000 (06:10 +0000)]
Method entry for addprinterex()
(This used to be commit 1ad82cd0c3f76a629b8fc2e1b02e57b8e97829dd)

17 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.
(This used to be commit b56bf8f43efbb356ecacf13b96cee7f07386d83d)

17 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.
(This used to be commit c07d583327fa194547d1bd41fdb12b25f24e88f7)

17 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.
(This used to be commit e3c27d7d1093743124cad573e781547a9a2f659f)

17 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()
(This used to be commit ced14ea913b55c87a8dd177080e711cfc16935c3)

17 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.
(This used to be commit bccbf3569801e8f16aed897c9d04c3f7e1430641)

17 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.
(This used to be commit 3180d8ba4ace9417033039d61d04c255da6f6a01)

17 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
(This used to be commit d3388d195308cf7fba83734424e78b5248786af5)

17 years agoAdded deleteprinterdata client rpc.
Tim Potter [Tue, 14 May 2002 07:21:57 +0000 (07:21 +0000)]
Added deleteprinterdata client rpc.
(This used to be commit 217ae50acd8cf088e268e7d2a6a7c192aca9e2f1)

17 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.
(This used to be commit a8f5951becaab82bb1b03e3e04a05901ec3aa8e3)

17 years agomake proto
Tim Potter [Tue, 14 May 2002 07:14:15 +0000 (07:14 +0000)]
make proto
(This used to be commit 0c52191cc5b986fbb50a476442e808d5e161e534)

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

Stub for deleteprinterdataex.
(This used to be commit 14acdbf06dec517a4f2fee5904cae1c0b72a90aa)

17 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.
(This used to be commit ca315ef84ff949edfbf0a8df0ae2128a97fc3ac5)

17 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.
(This used to be commit f7fadfdd73d3ba12dbfc7bf18319ce72f79a0dcc)

17 years agoAdded writeprinter rpc command.
Tim Potter [Tue, 14 May 2002 06:37:54 +0000 (06:37 +0000)]
Added writeprinter rpc command.
(This used to be commit a1934a7a8eda592e283a01014280ddb373564927)

17 years agoAdded writeprinter command.
Tim Potter [Tue, 14 May 2002 06:09:59 +0000 (06:09 +0000)]
Added writeprinter command.
(This used to be commit 307788d0b823f228c718b2a186fc66144fd55717)

17 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.
(This used to be commit 89633a1d87d2a437dc1ceab9439f415ee1ec606d)

17 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.
(This used to be commit 79d7bcf42e568b8fe75818c1d2344bff738afd70)

17 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.
(This used to be commit a9a5702c88ea9c4a6a9197cf4e3444b26be858cc)

17 years agoAdded enumprinterdata.
Tim Potter [Tue, 14 May 2002 05:01:04 +0000 (05:01 +0000)]
Added enumprinterdata.
(This used to be commit 7a15ce7c0c6a6b3a62dd6607fefc32742fa50308)

17 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.
(This used to be commit 18aeadc591b69bbbd874b7285ecaed50ff587e68)

17 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
(This used to be commit 5c58b4290dbc364f3b2d6593fd0425fd50160993)

17 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.
(This used to be commit 6b4affde167104c760bd8dc3c8906511a7642853)

17 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
(This used to be commit 2676be4e419878fbf74b619949e1d84c6186691c)

17 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.
(This used to be commit c2a6b0b1269b2e2abcf675538869dfba3cab8894)

17 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.
(This used to be commit 34a0293a04cecf20c05a2d09d1ecda64538ca529)

17 years agoUpdated patch.
Tim Potter [Mon, 13 May 2002 07:29:38 +0000 (07:29 +0000)]
Updated patch.
(This used to be commit 0851f473b7705a3d95dc2727cd7986295d2733ff)

17 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.
(This used to be commit 2811ac99a1fcc2be02f89a418fe00c99c2bba81c)

17 years agoAdded getprinterdata and setprinterdata functions.
Tim Potter [Mon, 13 May 2002 07:27:20 +0000 (07:27 +0000)]
Added getprinterdata and setprinterdata functions.
(This used to be commit 325361e9e6e2b2f852cc8607ad93108b80bcef06)

17 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.
(This used to be commit f2b9447bbdfe025b24a73d1c44885bcadb3f826f)

17 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.
(This used to be commit 38de5025fb1f6396e456e26bfb071223da247f03)

17 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.
(This used to be commit 8e09e9454685f4638375247fdb4a1e7c6de91704)

17 years agoAdded startdocprinter and enddocprinter.
Tim Potter [Mon, 13 May 2002 01:55:04 +0000 (01:55 +0000)]
Added startdocprinter and enddocprinter.
(This used to be commit 954107a9d314c8d87f65f741804ca3f9ca94432e)

17 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
(This used to be commit 0420ae846cc93d4598b16dd21a4b8f61ae270fa2)

17 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
(This used to be commit 1c3c0d7cb64caa6be7ee6d786fe400a1d6944a72)

17 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 :)
(This used to be commit 2f30c2edfd6373864f5bd0c4f8d70625495da7eb)

17 years agomerge from SAMBA_2_2
Gerald Carter [Sat, 11 May 2002 03:30:21 +0000 (03:30 +0000)]
merge from SAMBA_2_2
(This used to be commit b41cefb4c0670b06564ac79fa10aff8d60069f10)

17 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.
(This used to be commit f137a2cc14c71cbffd2ffb392c33cc67817b1658)

17 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
(This used to be commit 68b83335de0215314c2234aa83069d8fb8265b80)

17 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.
(This used to be commit 41cec26ee36458c2f6fdf768d25a83031e4d5bbb)

17 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
(This used to be commit 0420098c47555224d2425845137e4159698e02c2)

17 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
(This used to be commit 59e49a79b485f5ba26dedff8a7d7fe1c8c77f16a)

17 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.
(This used to be commit e56de32f5ce5cb301137497451b0ccd633f09f54)

17 years agoAdded findsmb to .cvsignore list.
Tim Potter [Fri, 10 May 2002 03:17:44 +0000 (03:17 +0000)]
Added findsmb to .cvsignore list.
(This used to be commit 5b682b2e04d054a2843269373abddc764c4c0cdd)

17 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.
(This used to be commit a67323d07177ebc8e46dc14476efaf7e95944504)

17 years agoRemoved libtool.m4 includes.
Tim Potter [Fri, 10 May 2002 02:06:14 +0000 (02:06 +0000)]
Removed libtool.m4 includes.
(This used to be commit 9ebc5ce4c12f635047e5ba1ec46ce14653495a53)