ira/wip.git
19 years agorerun autoconf
Andrew Bartlett [Mon, 14 Jan 2002 22:11:44 +0000 (22:11 +0000)]
rerun autoconf
(This used to be commit d6bd9f1005496753333c3d8dec5e1a8069f1ce7b)

19 years agoI like --enable-developer, but I find it rather usless when all it gets me is a
Andrew Bartlett [Mon, 14 Jan 2002 22:11:01 +0000 (22:11 +0000)]
I like --enable-developer, but I find it rather usless when all it gets me is a
screen-full of kerberos warnings.

This is almost as good, and I can actually see the Samba warnings.

Andrew Bartlett
(This used to be commit 35a6275e186cbd7b1f2190265b47112f1d082c06)

19 years agoInitialise cli variables and try not to do a cli_shutdown() of uninitialsed
Andrew Bartlett [Mon, 14 Jan 2002 22:08:47 +0000 (22:08 +0000)]
Initialise cli variables and try not to do a cli_shutdown() of uninitialsed
memory.

The winbind connection caching code isn't exactly a plesent beast, and there is
more work that needs to be done to nail this properly.

Andrew Bartlett
(This used to be commit dd40ce54b7f170854d63e08ac737f1b4306bd95b)

19 years agoFix a segfault in auth/auth_domain.c error cases.
Andrew Bartlett [Mon, 14 Jan 2002 21:52:25 +0000 (21:52 +0000)]
Fix a segfault in auth/auth_domain.c error cases.

This occured when the attempt to contact the PDC failed.  The connection code
has already shut down the connection, and 'free'ed the cli or has never
initialised it in the first place.

Andrew Bartlett
(This used to be commit 37ce7630434c1afae5164c64438f428dd8e1b731)

19 years agoRemoved MAXSTATUS which was set incorrectly - thus causing tdb traversal
Jeremy Allison [Mon, 14 Jan 2002 19:34:28 +0000 (19:34 +0000)]
Removed MAXSTATUS which was set incorrectly - thus causing tdb traversal
of the connections db on smbd startup. This should fix the Solaris large
load bug.... (fingers crossed).
Jeremy.
(This used to be commit 5b2b9c25af28543e67762805d1387524cbb6c39d)

19 years agoFIXME We should turn the global list off when using Insure++,
Martin Pool [Mon, 14 Jan 2002 06:51:34 +0000 (06:51 +0000)]
FIXME We should turn the global list off when using Insure++,
otherwise all the memory will be seen as still reachable.
(This used to be commit 682e7cd394c1e1cc9a83f7e8e5e3694e083946c4)

19 years agoMove local variable to avoid warning when compiled without GSSAPI.
Martin Pool [Mon, 14 Jan 2002 06:34:53 +0000 (06:34 +0000)]
Move local variable to avoid warning when compiled without GSSAPI.
(This used to be commit 312c6d906e64d231ff3c2f37e61d752cc948ee7b)

19 years agoPSTRING_SANCTIFY:
Martin Pool [Mon, 14 Jan 2002 06:15:07 +0000 (06:15 +0000)]
PSTRING_SANCTIFY:

If you define this, pstring and fstring become distinguished types, so
that it's harder to accidentally overflow them by for example passing
an fstring on the lhs of pstrcpy.

The types are defined as one-element union arrays so that with
"fstring f" the name "f" will be a pointer and with a big hammer you
can cast it to (char *).  So code that tries to just use it directly
will get a loud warning, but hopefully nothing worse.

To pass them to non-pstring-aware functions, use PSTR and check that
the function takes a const.  They should almost never be modified
except by special calls.  In those unusual cases, use PSTR_MUTABLE.

This is off by default so as not to produce too many warnings.  As the
code is vetted it can become the default.
(This used to be commit ca233bc8b30d7d0626039b2769c4e1ae92dafd50)

19 years agoRemoved fprintf(stderr, ...); calls which should not be present in library
Tim Potter [Mon, 14 Jan 2002 02:22:31 +0000 (02:22 +0000)]
Removed fprintf(stderr, ...); calls which should not be present in library
functions.
(This used to be commit e69a22290e5c923f31223906461df4874e3b2aac)

19 years agoA couple of coding syle updates to follow the re-indent.
Andrew Bartlett [Sun, 13 Jan 2002 12:37:01 +0000 (12:37 +0000)]
A couple of coding syle updates to follow the re-indent.
(This used to be commit 7417d6f9310188d2ad3d8f41d3dcbe55862c72ac)

19 years agoRe-indent these two functions to make it actually possible to understand their
Andrew Bartlett [Sun, 13 Jan 2002 12:33:42 +0000 (12:33 +0000)]
Re-indent these two functions to make it actually possible to understand their
contents...

Andrew Bartlett
(This used to be commit e20d69d51862ea3fd5a7317a9592bd4dc6e68bfd)

19 years agodon't try to allocate zero bytes
Andrew Tridgell [Sun, 13 Jan 2002 11:46:04 +0000 (11:46 +0000)]
don't try to allocate zero bytes
(This used to be commit d09616da6823b69a03a8a008987c4eb02ca0061b)

19 years agoI'm doing some things towards the NamedPipes game with lckl and he has asked me
Andrew Bartlett [Sun, 13 Jan 2002 11:13:54 +0000 (11:13 +0000)]
I'm doing some things towards the NamedPipes game with lckl and he has asked me
to move this from being a static to matching its mate in lib/util_sock.c.

In any case, this should discorage anybody from using the 'wrong' version of
this function.  (ie the one from TNG, which needs a bit more error checking
depending on use).

Andrew Bartlett
(This used to be commit e6a3a01f795a85d908180ff19469ce09a2803512)

19 years agoMany thanks to Alexander Bokovoy <a.bokovoy@sam-solutions.net>.
Andrew Bartlett [Sat, 12 Jan 2002 23:57:10 +0000 (23:57 +0000)]
Many thanks to Alexander Bokovoy <a.bokovoy@sam-solutions.net>.
This work was sponsored by Optifacio Software Services, Inc.

Andrew Bartlett

(various e-mails announcements merged into some form of commit message below:)

This patch which adds basics of universal groups support
into Samba 3. Currently, only Winbind with RPC calls supports this, ADS
support requires additional (possibly huge) work on KRB5 PAC. However,
basic infrastructure is here.

This patch adds:

1. Storing of universal groups for particular user logged into Samba
software (smbd/ two winbind-pam methods) into netlogon_unigrp.tdb as array
of uint32 supplemental group rids keyed as DOMAIN_SID/USER_RID in tdb.

2. Fetching of unversal groups for given user rid and domain sid from
netlogon_unigrp.tdb.

Since this is used in both smbd and winbindd, main code is in
source/lib/netlogon_uingrp.c. Dependencies are added to AUTH_OBJ as
UNIGRP_OBJ and WINBINDD_OBJ as UNIGRP_OBJ.

This patch has had a few versions, the final version in particular:

Many thanks to Andrew Bartlett for critics and comments, and partly
rewritten code.

New:
- updated fetching code to changed byte order macros
- moved functions to proper namespace
- optimized memory usage by reusing caller's memory context
- enhanced code to more follow Samba coding rules

Todo:
- proper universal group expiration after timeout
(This used to be commit 80c2aefbe7c1aa363dd286a47d50c5d8b4595f43)

19 years agoupdates from 2.2
Simo Sorce [Sat, 12 Jan 2002 23:12:13 +0000 (23:12 +0000)]
updates from 2.2
(This used to be commit 398b4ff0d40d89b3e96d481807f85f15b7a7966a)

19 years agoAdded PRINTER_INFO_4/PRINTER_INFO_5, we're seeing level 5 requested on the wire....
Jeremy Allison [Sat, 12 Jan 2002 02:37:54 +0000 (02:37 +0000)]
Added PRINTER_INFO_4/PRINTER_INFO_5, we're seeing level 5 requested on the wire... so.
Jeremy.
(This used to be commit b63b76297835ab8227b98925fa8120ffce1a37d9)

19 years agoThanks to vance for spotting the missing Makefile.in commit.
Andrew Bartlett [Sat, 12 Jan 2002 02:06:17 +0000 (02:06 +0000)]
Thanks to vance for spotting the missing Makefile.in commit.

This should make things a little happier...

Andrew Bartlett
(This used to be commit 6ce467a65fdaabbcfac258a1b899c833602b6d92)

19 years agoMove all the pdb_get...() and pdb_set...() functions to a new file.
Andrew Bartlett [Sat, 12 Jan 2002 01:55:09 +0000 (01:55 +0000)]
Move all the pdb_get...() and pdb_set...() functions to a new file.

This brings passdb.c down to a much more manageable ~1100 lines and makes it a
little easier to comprehend whats going on here.

Andrew Bartlett
(This used to be commit 28d5ab269cfba5e8410163edb3e0c222ed7f0be1)

19 years agoAdded the O_NOFOLLOW flag if follow symlinks is set off.
Jeremy Allison [Sat, 12 Jan 2002 00:50:01 +0000 (00:50 +0000)]
Added the O_NOFOLLOW flag if follow symlinks is set off.
Jeremy.
(This used to be commit 4f1f5f28b514dda86f6f49465bd5887357e37bc6)

19 years agoRound and round we go....
Jeremy Allison [Fri, 11 Jan 2002 23:33:12 +0000 (23:33 +0000)]
Round and round we go....
Jeremy.
(This used to be commit 2603ab3c6870f3697751b887e940910713f08985)

19 years agoLatest attempt at changeid.
Jeremy Allison [Fri, 11 Jan 2002 21:52:46 +0000 (21:52 +0000)]
Latest attempt at changeid.
Jeremy.
(This used to be commit 24ee18c77e1b61004d8ed817118a481f3d43e34c)

19 years agoSame fix as went into 2.2 (I'm waiting for jerry to finish some code).
Jeremy Allison [Fri, 11 Jan 2002 19:10:25 +0000 (19:10 +0000)]
Same fix as went into 2.2 (I'm waiting for jerry to finish some code).
Jeremy.
(This used to be commit 01ff6ce4963e1daff019f2b936cef218e1c93f67)

19 years agofixed a crash bug in domain auth caused by an uninitialised nt_status
Andrew Tridgell [Fri, 11 Jan 2002 13:14:28 +0000 (13:14 +0000)]
fixed a crash bug in domain auth caused by an uninitialised nt_status
(This used to be commit 0b0b937b58f4bf4e005fb622f0db19175fc46a47)

19 years agofixed a crash in merge_aces()
Andrew Tridgell [Fri, 11 Jan 2002 11:26:31 +0000 (11:26 +0000)]
fixed a crash in merge_aces()
when we free curr_ace_outer we need to not try to use it again :)
(This used to be commit 1c5e19a418136c0ae524e62a4907501212ebac3d)

19 years agoforce the time difference in cache comparisons to be unsigned to cope
Andrew Tridgell [Fri, 11 Jan 2002 10:05:34 +0000 (10:05 +0000)]
force the time difference in cache comparisons to be unsigned to cope
with the local machine time changing
(This used to be commit 116c0a0e3baa6a100a816f1ff2722782941ac3dc)

19 years agomake the winbind sequence number code more robust
Andrew Tridgell [Fri, 11 Jan 2002 10:02:28 +0000 (10:02 +0000)]
make the winbind sequence number code more robust

when switching from rpc to ADS this now should make sense
(This used to be commit ec73d26c7f9a2bbd4b91e9c22850e032b91666e2)

19 years agocope with direct IP addresses in resolve_name()
Andrew Tridgell [Fri, 11 Jan 2002 09:48:27 +0000 (09:48 +0000)]
cope with direct IP addresses in resolve_name()
(This used to be commit 73a59170e6fab3b0f91938a74302750915a04a7a)

19 years agopreparing for release of 3.0-alpha13
Samba Release Account [Fri, 11 Jan 2002 08:48:49 +0000 (08:48 +0000)]
preparing for release of 3.0-alpha13
(This used to be commit 4f4f898348c5719b745ff358463fd7d59e3da495)

19 years agoMake this error match Win2k.
Andrew Bartlett [Fri, 11 Jan 2002 07:48:55 +0000 (07:48 +0000)]
Make this error match Win2k.
(This used to be commit 490d3aaf20f04d04c91c4748896d7a021581a229)

19 years agoThe DC is meant to be sent the *unmapped* username...
Andrew Bartlett [Fri, 11 Jan 2002 06:22:42 +0000 (06:22 +0000)]
The DC is meant to be sent the *unmapped* username...

Andrew Bartlett
(This used to be commit d7fca1806a304cb6eeecfe34d6c5c012c745114f)

19 years agoAlways query the PDC for the list of trusted domains rather than interating
Tim Potter [Fri, 11 Jan 2002 05:33:45 +0000 (05:33 +0000)]
Always query the PDC for the list of trusted domains rather than interating
the list received at startup or we get an out of date list.  I thought
there might be some sequence number that is incremented when a trusted
domain is added or removed - perhaps there is but I just haven't found it
yet.

 - Renamed get_domain_info() to init_domain_list()

 - Made an accessor function to return the list of trusted domains rather
   than using a global so we don't have to remember to put a magic init
   function

 - The getent state can not keep a pointer to a winbind_domain structure as
   it may be freed if init_domain_list() is called again so we keep the
   domain name instead
(This used to be commit 37216c649a394b449eaaaa6644709eafb3bf37ff)

19 years agoBack out the crazy notion that the NTLMSSP flags actually mean anything...
Andrew Bartlett [Fri, 11 Jan 2002 05:29:09 +0000 (05:29 +0000)]
Back out the crazy notion that the NTLMSSP flags actually mean anything...

Replace this with some flags that *we* define.  We can do a mapping later
if we actually get some more reliable info about what passwords are actually
valid.

Andrew Bartlett
(This used to be commit 7f7a42c3e4d5798ac87ea16a42e4976c3778a76b)

19 years agoCorrect4ed comment.
Tim Potter [Fri, 11 Jan 2002 05:14:52 +0000 (05:14 +0000)]
Correct4ed comment.
(This used to be commit 78814664ef7d41c2f6637b508711ab45647a64f9)

19 years agoFix up 'net ads join' to delete and rejoin if the account already exists.
Andrew Bartlett [Fri, 11 Jan 2002 04:50:45 +0000 (04:50 +0000)]
Fix up 'net ads join' to delete and rejoin if the account already exists.

This fixes up a problem where a machine would join (or downgrade by trust
password change) to NT4 membership and not be able to regain full ADS
membership until a 'net ads leave'.

Andrew Bartlett
(This used to be commit ab8ff85f03b25a0dfe4ab63886a10da81207393c)

19 years agoSome memory leak fixes.
Tim Potter [Fri, 11 Jan 2002 03:49:51 +0000 (03:49 +0000)]
Some memory leak fixes.
(This used to be commit da4db0373b65d975d5129715d6b1fa725b188766)

19 years agocommit some changes for ab, and keep working on the smbgroupedit
Gerald Carter [Fri, 11 Jan 2002 00:41:27 +0000 (00:41 +0000)]
commit some changes for ab, and keep working on the smbgroupedit
manpage.
(This used to be commit a10cdbfbed4e04609f511cbbf976df4b4d391729)

19 years agomake sure resolve_name() only returns valid IP addresses
Andrew Tridgell [Fri, 11 Jan 2002 00:23:29 +0000 (00:23 +0000)]
make sure resolve_name() only returns valid IP addresses
this is actually a workaround for old broken nmbd daemons, especially
from Samba 2.0
(This used to be commit 12021a8de6a1dc2e43cc62f094a57c57283dfaf4)

19 years agoSince AB has been changing the winbind interface it's time to add the "mock
Tim Potter [Thu, 10 Jan 2002 23:45:29 +0000 (23:45 +0000)]
Since AB has been changing the winbind interface it's time to add the "mock
swedish" test to client calls.  This is putting a length field at the
start of a request so we can disconnect clients talking with an out of date
libnss_winbind.so rather than deadlock them.

Misc cleanups:

 - made some int values uint32
 - moved WINBIND_INTERFACE_VERSION to start of cmd list
(This used to be commit a4af65b9b93671f13f277d49279a85042a8fd1d5)

19 years agoadded structure members referred to by recent changes in vfs-wrap.c
Herb Lewis [Thu, 10 Jan 2002 19:40:40 +0000 (19:40 +0000)]
added structure members referred to by recent changes in vfs-wrap.c
(This used to be commit c5e14d73dffee86ef2dabcf7031eea0da9e32f3d)

19 years agomerge tpots name changes into IRIX part of code. When you change the name
Herb Lewis [Thu, 10 Jan 2002 18:49:37 +0000 (18:49 +0000)]
merge tpots name changes into IRIX part of code. When you change the name
of a define you need to grep for the old name and change ALL places.
(This used to be commit 09e3276fb7207dff73f181072851bd542fb64263)

19 years agoTake a stab at keeping the doco current :-)
Andrew Bartlett [Thu, 10 Jan 2002 12:32:59 +0000 (12:32 +0000)]
Take a stab at keeping the doco current :-)
(This used to be commit 88b0e670426c216d754716dc6095b673b9645f1a)

19 years agoReturn the winbind separator over the socket, so programs don't have to parse
Andrew Bartlett [Thu, 10 Jan 2002 11:28:14 +0000 (11:28 +0000)]
Return the winbind separator over the socket, so programs don't have to parse
smb.conf to get it right.

While wb_client needs its lp_load() for samba dependency reasons, it now uses
the new method both to example and test the new code.

Also add an interface version function, and return the winbind's samba version
string.

In preperation for default domains, its now up to winbindd to reject plaintext
auths that don't have a seperator, but NTLM (CRAP) auths now have two feilds,
hence need parsing.

Andrew Bartlett
(This used to be commit 2bd2a092ee3d49a74d896385688d7c7256aa297e)

19 years agoThis changes the winbind protcol a bit:
Andrew Bartlett [Thu, 10 Jan 2002 10:23:54 +0000 (10:23 +0000)]
This changes the winbind protcol a bit:

It adds a 'ping' request, just to check winbind is in fact alive

It also changes winbindd_pam_auth_crap to take usernames and domain seperatly.

(backward incompatible change, needs merge to 2.2, but this is not yet released
code, so no workarounds)

Finally, it adds some debugs and fixes a few memory leaks (uses talloc to do
it).

Andrew Bartlett
(This used to be commit 6df29bfe335144a968f5367f624ef2b4cf9e69b0)

19 years agoQuieten warning about uninitialized variable.
Martin Pool [Thu, 10 Jan 2002 06:32:01 +0000 (06:32 +0000)]
Quieten warning about uninitialized variable.
(This used to be commit 63ea2bb0adf5ae742658f479613de90b1eec3db5)

19 years agoA big tidyup while thinking about getting trusted domains being re-read
Tim Potter [Thu, 10 Jan 2002 06:20:03 +0000 (06:20 +0000)]
A big tidyup while thinking about getting trusted domains being re-read
when they are added or removed on the PDC.

 - renamed GETPWNAM_FROM_{UID,USER} constants and functions to GETPW{NAM,UID}

 - renamed GETGRNAM_FROM_{GID,GROUP} constants and functions to GETGR{NAM,GID}

 - use SIGUSR2 in winbindd for debugging/logging instead of SIGUSR1 in
   preparation for moving to smbcontrol type messages (not sure whether to
   ditch this altogether or not)

 - tidy debugging messages in top level winbind user and group routines

 - convert talloc_init() to talloc_init_named()

 - make enumerations of the domain list use the same local variable names
(This used to be commit eeb8af9c1a66bfcd80823d7b406acbab79857a16)

19 years agoSpelling fix.
Tim Potter [Thu, 10 Jan 2002 06:05:37 +0000 (06:05 +0000)]
Spelling fix.
(This used to be commit 85d3ffb2709258e576191adade9c61b11e83eec5)

19 years agobrowse_fn: FIXME: If the remote machine returns non-ascii characters
Martin Pool [Thu, 10 Jan 2002 03:53:06 +0000 (03:53 +0000)]
browse_fn: FIXME: If the remote machine returns non-ascii characters
   in any of these fields, they can corrupt the output.  We
   should remove them.
(This used to be commit 934aacdb39a0c21c43505dbba696b746f1333df3)

19 years agoFirst part of UNIX extensions (#ifdefed out) more to follow.
Jeremy Allison [Thu, 10 Jan 2002 02:41:15 +0000 (02:41 +0000)]
First part of UNIX extensions (#ifdefed out) more to follow.
Jeremy.
(This used to be commit 02b18f2cca6d6d046d2d8fd7375b207d44031ddc)

19 years agoOh joy - the original code didn't do mapping of the perms onto the wire.
Jeremy Allison [Thu, 10 Jan 2002 02:18:08 +0000 (02:18 +0000)]
Oh joy - the original code didn't do mapping of the perms onto the wire.
Make it up as we go along... :-).
Jeremy.
(This used to be commit 4289fe3499e49c3ed356eff55ffbcfef4dca72af)

19 years agoEnsure this is committed last.
Jeremy Allison [Thu, 10 Jan 2002 01:49:22 +0000 (01:49 +0000)]
Ensure this is committed last.
Jeremy.
(This used to be commit 2591361fa860b3f9480c0c29e433c15d45d9abe4)

19 years agoWe need to test for major/minor macros.
Jeremy Allison [Thu, 10 Jan 2002 01:49:09 +0000 (01:49 +0000)]
We need to test for major/minor macros.
Jeremy.
(This used to be commit ee8c8add7f83d7a794546769c59c85ef8bb5b89a)

19 years agoAlthough configure.in and configure were checked in at the same time
Tim Potter [Thu, 10 Jan 2002 01:32:57 +0000 (01:32 +0000)]
Although configure.in and configure were checked in at the same time
I think configure.in just beat it to the repository so the timestamp of
configure.in is newer than configure.  )-:
(This used to be commit ee0a6f8d26a594bb3d0ee266a0229f3046590270)

19 years agoGetting ready to add UNIX extensions in HEAD also.
Jeremy Allison [Thu, 10 Jan 2002 00:28:09 +0000 (00:28 +0000)]
Getting ready to add UNIX extensions in HEAD also.
Jeremy
(This used to be commit 6210d4aa196c944e47076e316980f76ac9c6b02d)

19 years agoAdded tests for st_blocks in struct stat, and added a (hateful) constant
Jeremy Allison [Wed, 9 Jan 2002 21:30:37 +0000 (21:30 +0000)]
Added tests for st_blocks in struct stat, and added a (hateful) constant
the specifies the units that st_blocks is in. The reason for this is
that HPUX uses 8k, AIX uses a #defined constant and everyone else (tm)
uses 512 byte units.
Needed for the CIFS UNIX extensions - coming to a Samba server near
you soon.... :-).
Jeremy.
(This used to be commit 38cfffea5f0d7f5ff676f83204a2923247dce9d5)

19 years agoFixed typo.
Jeremy Allison [Wed, 9 Jan 2002 20:48:18 +0000 (20:48 +0000)]
Fixed typo.
Jeremy.
(This used to be commit a99e0cec1e2596c5bc89932e64de301f3fb9ae86)

19 years agoMove SAFE_FREE into tdb.c to stop exporting it into tdb.h namespace.
Jeremy Allison [Wed, 9 Jan 2002 18:26:39 +0000 (18:26 +0000)]
Move SAFE_FREE into tdb.c to stop exporting it into tdb.h namespace.
Jeremy.
(This used to be commit 4f703b84cd7f258ae0169d52ca761b9404ccb348)

19 years agoAdd two more memory-debug smbcontrol messages: these ones should
Martin Pool [Wed, 9 Jan 2002 08:27:15 +0000 (08:27 +0000)]
Add two more memory-debug smbcontrol messages: these ones should
prompt dmalloc to log information about what happening, so you can see
in flight why smbd is getting bloated.
(This used to be commit bcb443c5c4bf97fe6b5b0993e42496c2e64f0124)

19 years agoFIXME: At the moment, if the user should happen to give the options
Martin Pool [Wed, 9 Jan 2002 08:17:12 +0000 (08:17 +0000)]
FIXME: At the moment, if the user should happen to give the options
ahead of the service name (in standard Unix fashion) then smbclient
just spits out the usage message with no explanation of what in
particular was wrong.  Is there any reason we can't just parse out the
service name and password after running getopt??
(This used to be commit 5f6feb55d7e7566549141ebb1786b6f2f9f2645b)

19 years agoBetter explanation message for dmalloc.
Martin Pool [Wed, 9 Jan 2002 07:52:51 +0000 (07:52 +0000)]
Better explanation message for dmalloc.

Also more insertion of parenthesis to handle struct members called
'free'.

You can now get useful dmalloc output, as long as it is compatible
with your C library.  On RH7.1 it looks like you have to rebuild
dmalloc to allow free(0) by default, because something in libcrypt
does that. (sigh)
(This used to be commit 391cbb690196537c8b6292b42c2e27408cc7e249)

19 years agoWith --enable-dmalloc, also use dmalloc's wrappers around routines
Martin Pool [Wed, 9 Jan 2002 06:38:22 +0000 (06:38 +0000)]
With --enable-dmalloc, also use dmalloc's wrappers around routines
like strcat
(This used to be commit fb8ab69b6f638c41d734282488be91d85b4ec057)

19 years agoSample configuration for dmalloc.
Martin Pool [Wed, 9 Jan 2002 06:35:45 +0000 (06:35 +0000)]
Sample configuration for dmalloc.
(This used to be commit 7bbfb29842b27938862a63834eef9b60ac568256)

19 years agoAdd UNUSED(paramname) macro to be used in parameter lists, to quieten
Martin Pool [Wed, 9 Jan 2002 05:27:59 +0000 (05:27 +0000)]
Add UNUSED(paramname) macro to be used in parameter lists, to quieten
gcc warnings about unused parameters.
(This used to be commit b29775d442c36f667a6db5ba9dbe47d1a133525f)

19 years agoAdd UNUSED(paramname) macro to be used in parameter lists, to quieten
Martin Pool [Wed, 9 Jan 2002 05:27:27 +0000 (05:27 +0000)]
Add UNUSED(paramname) macro to be used in parameter lists, to quieten
gcc warnings about unused parameters.

msg_pool_usage: assert msg_type is as expected.
(This used to be commit 3ef135e91aaebf9648c4dd13f59686f57f4cff70)

19 years agoWhen re-writing tdb version numbers as little endian int32, we must
Jeremy Allison [Wed, 9 Jan 2002 05:24:07 +0000 (05:24 +0000)]
When re-writing tdb version numbers as little endian int32, we must
change the version number also.
Jeremy.
(This used to be commit 3dec9cf99a82bd15626eb99e7d937ff00183cc05)

19 years agoFix macro name controlling inclusion of DMALLOC.
Martin Pool [Wed, 9 Jan 2002 05:10:47 +0000 (05:10 +0000)]
Fix macro name controlling inclusion of DMALLOC.
(This used to be commit a57e13b8b661dd41e8036f862c708b5d3ced82e6)

19 years agoAdd harmless parentheses so that dmalloc doesn't get confused by a
Martin Pool [Wed, 9 Jan 2002 05:09:44 +0000 (05:09 +0000)]
Add harmless parentheses so that dmalloc doesn't get confused by a
variable called 'free'.
(This used to be commit a823e3f8b2961c3e24205911354a55ffa588233b)

19 years agoMerge from appliance-head:
Tim Potter [Wed, 9 Jan 2002 04:26:41 +0000 (04:26 +0000)]
Merge from appliance-head:

 - put in some level 10 debugs so we can see what internal_resolve_name()
   is doing

 - remove duplicates from returned ip list of internal_resolve_name()
(This used to be commit 08d2bcef1a4fc77d28bc0fa9e4ff5f3131cedea5)

19 years agoFor hysterical raisins you must use string_set() to set the value of a
Tim Potter [Wed, 9 Jan 2002 04:17:24 +0000 (04:17 +0000)]
For hysterical raisins you must use string_set() to set the value of a
string in the loadparam Globals struct.  Using pstrcpy was causing every
NULL string was being set to the name of the winbindd log file.  (-:
(This used to be commit 24bae9f05523a7c85bf1988d349149ebeb5067f0)

19 years agoFixed all uses of tdb_fetch/store/_int to use explicit int32 little endian
Jeremy Allison [Wed, 9 Jan 2002 04:13:30 +0000 (04:13 +0000)]
Fixed all uses of tdb_fetch/store/_int to use explicit int32 little endian
in tdb's. All except winbindd_idmap.... Hmmmmmm.
Jeremy.
(This used to be commit ec71f1732b6b27bd2d65b250a6f3720a235dc38d)

19 years agoHPUX nss fix.
Jeremy Allison [Wed, 9 Jan 2002 03:38:31 +0000 (03:38 +0000)]
HPUX nss fix.
Jeremy.
(This used to be commit 1f12e310e5d8b01d3d29132d1bb1f41196165f7f)

19 years agoFixed up atomic update code.
Jeremy Allison [Wed, 9 Jan 2002 02:35:08 +0000 (02:35 +0000)]
Fixed up atomic update code.
Jeremy.
(This used to be commit 274b04d4a6123fbfe363afc214e908ab36c7e8a7)

19 years agoAdded int32 version of "atomic" update.
Jeremy Allison [Wed, 9 Jan 2002 01:53:19 +0000 (01:53 +0000)]
Added int32 version of "atomic" update.
Jeremy.
(This used to be commit 1233b553e78b8d7580b9ea4f1bba62c78b4cd186)

19 years agoAdded int32 versions of the endian-dependent code.
Jeremy Allison [Wed, 9 Jan 2002 01:32:17 +0000 (01:32 +0000)]
Added int32 versions of the endian-dependent code.
Jeremy.
(This used to be commit d57fb9a8c25a95e434cb5fb3d63a87d98abeefef)

19 years agoMy previous fix had a bug....
Jeremy Allison [Tue, 8 Jan 2002 23:50:14 +0000 (23:50 +0000)]
My previous fix had a bug....
This is SO NASTY as some drivers need this to change, others need it
static. This value will change every second, and I must hope that this
is enough..... DON'T CHANGE THIS CODE WITHOUT A TEST MATRIX THE SIZE OF
UTAH !
Jeremy.
(This used to be commit 9fb780d951babeaf5f5b82903c717ff5ccf831cd)

19 years agoI think I've finally gotten this straighten out in my tree.
Gerald Carter [Tue, 8 Jan 2002 22:53:58 +0000 (22:53 +0000)]
I think I've finally gotten this straighten out in my tree.
All should be curent now.
(This used to be commit 91662683e3e690fb69f333fadf0f317c53995ba7)

19 years agoi **really** hate stuck tags in CVS :-( Figured out why
Gerald Carter [Tue, 8 Jan 2002 22:49:28 +0000 (22:49 +0000)]
i **really** hate stuck tags in CVS :-(  Figured out why
my files were not being checked in sometimes.....

 cvs update -A

cleared all the sticky tages and now I have to recheck some things in.

j-
(This used to be commit 241f4a548d57083b153afafafdd18ed5de5412b7)

19 years agoGetting ready to add winbindd support for HPUX 11.
Jeremy Allison [Tue, 8 Jan 2002 21:11:25 +0000 (21:11 +0000)]
Getting ready to add winbindd support for HPUX 11.
Jeremy.
(This used to be commit 012a9144124b5bde5fb1fe12c6147f32ccf2046e)

19 years agoentering placeholders for forthcoming documentation
Gerald Carter [Tue, 8 Jan 2002 17:55:41 +0000 (17:55 +0000)]
entering placeholders for forthcoming documentation
(This used to be commit 789c1defa47a1efd25efafab2d8a5a51c03b85b4)

19 years agoAnother attempt at getting changeid correct. Jerry / JF please check !
Jeremy Allison [Tue, 8 Jan 2002 05:39:27 +0000 (05:39 +0000)]
Another attempt at getting changeid correct. Jerry / JF please check !
This fixes a driver init bug.
Jeremy.
(This used to be commit 8e8d71816002c634669c0cb0234f7a35281d9cad)

19 years ago- fixed my breakage of CPPFLAGS
Andrew Tridgell [Tue, 8 Jan 2002 04:44:15 +0000 (04:44 +0000)]
- fixed my breakage of CPPFLAGS
- allow winbindd and wbinfo to build without shared libraries
(This used to be commit d5db2518be8458f24f66eaa17434504b994ebb9a)

19 years agoCaught one problem where a BOOL fn was returning 3 different values :-).
Jeremy Allison [Tue, 8 Jan 2002 01:22:23 +0000 (01:22 +0000)]
Caught one problem where a BOOL fn was returning 3 different values :-).
Roll on defined types :-).
Jeremy.
(This used to be commit ccf07e2184a93345a51455dd3e9201dee7be70e7)

19 years agoDebugs that print out a share mode table in debug level 10. This code
Jeremy Allison [Tue, 8 Jan 2002 00:52:36 +0000 (00:52 +0000)]
Debugs that print out a share mode table in debug level 10. This code
enabled me to track down a *nasty* bug.
Jeremy.
(This used to be commit ed5a9a0ee32aec460b9247ab4e4f5e38e8149e08)

19 years agoAdded get_called_name() function, which replaces global_myname in printing
Jeremy Allison [Tue, 8 Jan 2002 00:46:56 +0000 (00:46 +0000)]
Added get_called_name() function, which replaces global_myname in printing
code (one less global, hurrah !) - to allow NetBIOS aliasing to be used
with point and print.
Jeremy.
(This used to be commit 10d72f0b01e5950c667f3f73dff1b4da5b675ea3)

19 years agoReturn called NetBIOS name if present in preference to global_myname.
Jeremy Allison [Mon, 7 Jan 2002 22:58:20 +0000 (22:58 +0000)]
Return called NetBIOS name if present in preference to global_myname.
Should allow print servers to work with NetBIOS aliases.
Needs testing.
Jeremy.
(This used to be commit ee8fd2690a4c8e4ebc5dd3b6e830116806ed5a4b)

19 years agomerge changes from 2.2 branch to prevent smb.conf from changing debug level
Herb Lewis [Mon, 7 Jan 2002 21:32:22 +0000 (21:32 +0000)]
merge changes from 2.2 branch to prevent smb.conf from changing debug level
of commands when specified on command line.
(This used to be commit 39d6b31e14144a3ff4b992d4286b706147e58566)

19 years agosync getopt() args with 2.2
Gerald Carter [Mon, 7 Jan 2002 14:17:49 +0000 (14:17 +0000)]
sync getopt() args with 2.2
(This used to be commit 2fcdc520cee051631bbc2a0c06466d231390f8d5)

19 years ago- use CFLAGS when linking shared libs (for things like -64 on irix)
Andrew Tridgell [Mon, 7 Jan 2002 11:42:12 +0000 (11:42 +0000)]
- use CFLAGS when linking shared libs (for things like -64 on irix)
- don't attempt to build winbindd if we can't do shared libs
(This used to be commit c98158f3f818118fb13cc7ae6f45634204343b46)

19 years agoSed error. The status value in the PRINTER_INFO_2 structure isn't a WERROR
Tim Potter [Mon, 7 Jan 2002 06:13:40 +0000 (06:13 +0000)]
Sed error.  The status value in the PRINTER_INFO_2 structure isn't a WERROR
but a plain old uint32.
(This used to be commit 690cc12bad2a037684a43b0dcb48be8eb03aa7bc)

19 years agoConverted getprinterdriver to WERROR - it always returns dos error 6
Tim Potter [Mon, 7 Jan 2002 03:33:46 +0000 (03:33 +0000)]
Converted getprinterdriver to WERROR - it always returns dos error 6
(invalid handle) though.  )-:
(This used to be commit 7bfd1f35e4e194f8a2f07046e4a6c005c256c05b)

19 years agoSpelling fix.
Tim Potter [Mon, 7 Jan 2002 02:58:31 +0000 (02:58 +0000)]
Spelling fix.
(This used to be commit dfcc97a15837e2d13561e023ad5a7532faa441b8)

19 years agoDon't log the password in pam_sm_authenticate() unless DEBUG_PASSWORD is
Tim Potter [Mon, 7 Jan 2002 02:57:06 +0000 (02:57 +0000)]
Don't log the password in pam_sm_authenticate() unless DEBUG_PASSWORD is
defined.  This is done with --enable-developer mode.
(This used to be commit caff5dc1d66953cb52f94cd6407778b23e1810eb)

19 years ago sync up comments with 2.2
Gerald Carter [Sun, 6 Jan 2002 23:21:23 +0000 (23:21 +0000)]
 sync up comments with 2.2
(This used to be commit 3d4adad1501fc02ee0c60c69c01a92bdb16a1711)

19 years agoConverted enumprinters and enumports cmd functions to use WERROR
Tim Potter [Sun, 6 Jan 2002 09:03:48 +0000 (09:03 +0000)]
Converted enumprinters and enumports cmd functions to use WERROR
values returned from cli functions.  They are converted to NTSTATUS codes
using the error map functions.

Do buffer size loop checks by setting offered = 0 and using the return
value of needed in the next call.
(This used to be commit 4efbdda3fcfd1fad2f2b8909d250735382497836)

19 years agoConverted enumprinters and enumports cli functions to return WERRORs.
Tim Potter [Sun, 6 Jan 2002 09:02:14 +0000 (09:02 +0000)]
Converted enumprinters and enumports cli functions to return WERRORs.

Make the offered and needed buffer size into parameters.
(This used to be commit 9d9e7fb74d420913cda1c592765b498fd64384f0)

19 years agoCheck for winbind separator in user name for cli_session_setup()
Tim Potter [Sun, 6 Jan 2002 04:03:26 +0000 (04:03 +0000)]
Check for winbind separator in user name for cli_session_setup()

Patch from Alexander Bokovoy <a.bokovoy@sam-solutions.net>
(This used to be commit 6c42bf208976ed3020e57efff6281f984d9fe893)

19 years agospoolss rpc client cleanup:
Tim Potter [Sun, 6 Jan 2002 03:54:40 +0000 (03:54 +0000)]
spoolss rpc client cleanup:

 - converted OpenPrinterEx and ClosePrinter to WERROR instead of NT_STATUS
 - doc
(This used to be commit 248d114f856f1adb76c903b683e0927530771443)

19 years agoDefine a rpc_client doc group.
Tim Potter [Sun, 6 Jan 2002 03:49:28 +0000 (03:49 +0000)]
Define a rpc_client doc group.
(This used to be commit 87bc0a71ecb0fc047fec5e0d240045fab09dd5d0)

19 years agoMinor doc cleanups.
Tim Potter [Sun, 6 Jan 2002 03:48:41 +0000 (03:48 +0000)]
Minor doc cleanups.
(This used to be commit 5c8f6be290e78c4e72c821abdc9f06b7150e68e7)

19 years agoAdded a get_dos_error_msg() function to mirror the get_nt_error_msg()
Tim Potter [Sun, 6 Jan 2002 03:41:29 +0000 (03:41 +0000)]
Added a get_dos_error_msg() function to mirror the get_nt_error_msg()

One day I'll get around to refactoring the DOS error handling so it mirrors
the NT error handling code.
(This used to be commit f4535721d350f3068e8dfb612331eb609ea03da0)

19 years agoDisplay nicer message when server name could not be resolved.
Tim Potter [Sun, 6 Jan 2002 03:24:51 +0000 (03:24 +0000)]
Display nicer message when server name could not be resolved.
(This used to be commit 950d8e365626ecbd82e9ee965dc1724dc50c64a4)