tprouty/samba.git
16 years agor12250: Patch from Martin Koeppe <mkoeppe@gmx.de> for #3287
Jeremy Allison [Wed, 14 Dec 2005 23:52:58 +0000 (23:52 +0000)]
r12250: Patch from Martin Koeppe <mkoeppe@gmx.de> for #3287
to make the dev/inode numbers match what SFU expects.
If we're using 8 byte inodes we'll lose the top 4 bytes
and replace them with a dev_t instead, but this seem
reasonable to ensure uniqueness.
Jeremy.

16 years agor12245: eDirectory returns LDAP_UNWILLING_TO_PERFORM if the
Jeremy Allison [Wed, 14 Dec 2005 20:39:42 +0000 (20:39 +0000)]
r12245: eDirectory returns LDAP_UNWILLING_TO_PERFORM if the
account is disabled. If we get this we can't check
the password so have to tell the client the account
was disabled.
Jeremy.

16 years agor12236: r11740@cabra: derrell | 2005-12-14 13:16:58 -0500
Derrell Lipman [Wed, 14 Dec 2005 18:17:05 +0000 (18:17 +0000)]
r12236:  r11740@cabra:  derrell | 2005-12-14 13:16:58 -0500
 check in the DEBUG message referenced in the previous commit

16 years agor12235: r11738@cabra: derrell | 2005-12-14 13:15:14 -0500
Derrell Lipman [Wed, 14 Dec 2005 18:15:54 +0000 (18:15 +0000)]
r12235:  r11738@cabra:  derrell | 2005-12-14 13:15:14 -0500
 Ensure that when libsmbclient copies a cli, it prevents the cli from later
 being freed, by turning off the 'allocated' flag.

 Change a DEBUG message in pipe_open code from level 0 to level 1 since
 libsmbclient is now regularly attempting to open a pipe for share enumeration,
 and falling back to RAP if RPC is unavailable (e.g. win98).  We don't want
 the debug message to display when the pipe open fails, under these normal
 circumstances.

16 years agor12234: Reduce the race condition for renames by holding the lock
Jeremy Allison [Wed, 14 Dec 2005 17:46:29 +0000 (17:46 +0000)]
r12234: Reduce the race condition for renames by holding the lock
longer. Instigated by complaints on the fix for #3303 from
SATOH Fumiyasu <fumiyas@miraclelinux.com>.
Jeremy.

16 years agor12225: r11729@cabra: derrell | 2005-12-13 22:59:45 -0500
Derrell Lipman [Wed, 14 Dec 2005 04:00:58 +0000 (04:00 +0000)]
r12225:  r11729@cabra:  derrell | 2005-12-13 22:59:45 -0500
 1. Fix a crash bug which should have reared its ugly head ages ago, but for
    some reason, remained dormant until recently.  The bug pertained to
    libsmbclient doing a structure assignment of a cli after having opened a
    pipe.  The pipe open code makes a copy of the cli pointer that was passed
    to it.  If the cli is later copied (and that cli pointer that was saved
    is no longer valid), the pipe code will cause a crash during shutdown or
    when the copied cli is closed.

 2. The 'type' field in enumerated shares was not being set correctly with
    the new RPC-based mechanism for enumerating shares.

16 years agor12224: adding more characters to the invalid share name string
Gerald Carter [Wed, 14 Dec 2005 01:09:46 +0000 (01:09 +0000)]
r12224: adding more characters to the invalid share name string

16 years agor12221: Fix error code paths that can potentially leave a dangling lock.
Jeremy Allison [Wed, 14 Dec 2005 00:42:40 +0000 (00:42 +0000)]
r12221: Fix error code paths that can potentially leave a dangling lock.
Jeremy.

16 years agor12214: Fix compile if SYNC_DNS is set.
Jeremy Allison [Tue, 13 Dec 2005 19:37:05 +0000 (19:37 +0000)]
r12214: Fix compile if SYNC_DNS is set.
Jeremy.

16 years agor12213: Final fix for #3303 - send rename messages to smbd's
Jeremy Allison [Tue, 13 Dec 2005 18:11:50 +0000 (18:11 +0000)]
r12213: Final fix for #3303 - send rename messages to smbd's
that have open file handles to allow them to correctly
implement delete on close. There is a further correctness
fix I'm intending to add to this to cope with different share
paths, but not right now...
Jeremy.

16 years agor12203: Add the share path into the sharemode db. This involves
Jeremy Allison [Mon, 12 Dec 2005 22:07:36 +0000 (22:07 +0000)]
r12203: Add the share path into the sharemode db. This involves
revving the minor version number for libsmbsharemodes (we
now have a new _ex interface that takes the share path
as well as the filename). Needed for #3303. Some code written
by SATOH Fumiyasu <fumiya@samba.gr.jp> included in the changes
to locking/locking.c. The smbstatus output is a bit of a mess
and needs overhauling...
Jeremy.

16 years agor12196: patch from Krishna Ganugapati <krishnag@centeris.com>
Gerald Carter [Mon, 12 Dec 2005 18:55:54 +0000 (18:55 +0000)]
r12196: patch from Krishna Ganugapati <krishnag@centeris.com>

Use the subtree delete ldap control when running 'net ads leave'
to ensure that the machine account is actually deleted.

16 years agor12194: Ensure that when we set a connection path we've canonicalized
Jeremy Allison [Mon, 12 Dec 2005 18:21:59 +0000 (18:21 +0000)]
r12194: Ensure that when we set a connection path we've canonicalized
the name (must be abolute - start with /, must not end in /,
must have ./ and ../ removed). Of course for realpath resolved
paths this won't be the case but for others we need this name
to be canonicalized. This name is going into the sharemode db
for #3303 so needs to be in a normalized format.
Jeremy.

16 years agor12193: Fix some typos.
Günther Deschner [Mon, 12 Dec 2005 14:08:42 +0000 (14:08 +0000)]
r12193: Fix some typos.

Guenther

16 years agor12185: Cosmetic cleanup
Volker Lendecke [Sun, 11 Dec 2005 21:59:58 +0000 (21:59 +0000)]
r12185: Cosmetic cleanup

16 years agor12182: Cosmetic cleanup
Volker Lendecke [Sun, 11 Dec 2005 16:55:28 +0000 (16:55 +0000)]
r12182: Cosmetic cleanup

16 years agor12177: last of outstanding patches in my queue to deal with MMC.
Gerald Carter [Sun, 11 Dec 2005 05:06:35 +0000 (05:06 +0000)]
r12177: last of outstanding patches in my queue to deal with MMC.
Validate the share name and fail when trying to creating
a share with bad characters.

16 years agor12176: fix type mismatch after rpc structure change in rpc_svcctl.h
Gerald Carter [Sun, 11 Dec 2005 04:41:54 +0000 (04:41 +0000)]
r12176: fix type mismatch after rpc structure change in rpc_svcctl.h

16 years agor12174: Simple patch to work around the current lack of BUILTIN
Gerald Carter [Sun, 11 Dec 2005 04:39:33 +0000 (04:39 +0000)]
r12174: Simple patch to work around the current lack of BUILTIN
nested group support.  Always add the BUILTIN\Administrators
SID to a Domain Admins token.

This solves the extra steps of establishing a group map for
the local Administrators SID in order to control services.
Windows also tends to expect the Administrators group to be
usable when setting up security permissions on shares.

Volker's work will probably fix this long term, but this
gets us past some of the setup hurdles for 3.0.21.

16 years agor12173: doing some service control work
Gerald Carter [Sun, 11 Dec 2005 04:21:34 +0000 (04:21 +0000)]
r12173: doing some service control work

* Add a few new error codes for disabled services
* dump some more details about service status in 'net rpc service'
* disable the WINS and NetLogon services if not configured in smb.conf

Still trying to figure out how to disable the start button
on the NetLogon and WINS services.

16 years agor12170: Fix a segfault -- this is post-3.0.21 code
Volker Lendecke [Sat, 10 Dec 2005 23:56:42 +0000 (23:56 +0000)]
r12170: Fix a segfault -- this is post-3.0.21 code

16 years agor12169: Remove an unused function
Volker Lendecke [Sat, 10 Dec 2005 23:29:39 +0000 (23:29 +0000)]
r12169: Remove an unused function

16 years agor12163: Change lookup_sid and lookup_name to return const char * instead of char *,
Volker Lendecke [Sat, 10 Dec 2005 11:22:01 +0000 (11:22 +0000)]
r12163: Change lookup_sid and lookup_name to return const char * instead of char *,
use a temporary talloc_ctx for clarity.

Volker

16 years agor12160: The filename parameter to get_share_mode_lock is going
Jeremy Allison [Sat, 10 Dec 2005 01:33:58 +0000 (01:33 +0000)]
r12160: The filename parameter to get_share_mode_lock is going
to become very important as we fix #3303, so make sure
we don't accidently set it here.
Jeremy.

16 years agor12133: Fix an uninitialized variable in new code in rpc_server/srv_samr_nt.c.
Volker Lendecke [Thu, 8 Dec 2005 19:34:22 +0000 (19:34 +0000)]
r12133: Fix an uninitialized variable in new code in rpc_server/srv_samr_nt.c.

Fix winbind_lookup_name for the local domain, ie for aliases on a member
server.

Volker

16 years agor12131: Fix it really, this time :)
Günther Deschner [Thu, 8 Dec 2005 16:34:57 +0000 (16:34 +0000)]
r12131: Fix it really, this time :)

Guenther

16 years agor12130: display domain GUID.
Günther Deschner [Thu, 8 Dec 2005 16:25:33 +0000 (16:25 +0000)]
r12130: display domain GUID.

Guenther

16 years agor12129: Fix uninitialized variables.
Volker Lendecke [Thu, 8 Dec 2005 15:34:38 +0000 (15:34 +0000)]
r12129: Fix uninitialized variables.

Volker

16 years agor12119: r10812@cabra: derrell | 2005-12-07 22:44:26 -0500
Derrell Lipman [Thu, 8 Dec 2005 03:44:40 +0000 (03:44 +0000)]
r12119:  r10812@cabra:  derrell | 2005-12-07 22:44:26 -0500
 sync to repository didn't work correctly...???

16 years agor12118: r10805@cabra: derrell | 2005-12-07 22:34:55 -0500
Derrell Lipman [Thu, 8 Dec 2005 03:41:19 +0000 (03:41 +0000)]
r12118:  r10805@cabra:  derrell | 2005-12-07 22:34:55 -0500
 first go at supporting long file names.  seeems to work; requires more testing

16 years agor12111: Fix the "everything" build by re-adding debug2html. Oops.
Jeremy Allison [Tue, 6 Dec 2005 23:31:33 +0000 (23:31 +0000)]
r12111: Fix the "everything" build by re-adding debug2html. Oops.
Jeremy.

16 years agor12110: We're using a tdb-based wins backend now. Thanks to the
Jeremy Allison [Tue, 6 Dec 2005 23:09:01 +0000 (23:09 +0000)]
r12110: We're using a tdb-based wins backend now. Thanks to the
ubiqx code, which has served us well for many a year..
"Well done, thou good and faithful servant".
Jeremy.

16 years agor12107: Move to a tdb-based wins database. At the moment we still
Jeremy Allison [Tue, 6 Dec 2005 23:06:38 +0000 (23:06 +0000)]
r12107: Move to a tdb-based wins database. At the moment we still
use it as though it were an in-memory db and dump out to
a flat file every 2 mins, but that can now change.
Jeremy.

16 years agor12106: Fix return value
Günther Deschner [Tue, 6 Dec 2005 20:22:51 +0000 (20:22 +0000)]
r12106: Fix return value

Guenther

16 years agor12098: r10797@cabra: derrell | 2005-12-06 12:09:00 -0500
Derrell Lipman [Tue, 6 Dec 2005 17:09:44 +0000 (17:09 +0000)]
r12098:  r10797@cabra:  derrell | 2005-12-06 12:09:00 -0500
 fixed another memory leak and reverted an (incorrect) fix from yesterday

16 years agor12096: Change uint32_t to uint32. Jerry, please pick this change up for
Jeremy Allison [Tue, 6 Dec 2005 16:25:27 +0000 (16:25 +0000)]
r12096: Change uint32_t to uint32. Jerry, please pick this change up for
3.0.21 final.
Jeremy.

16 years agor12081: r10674@cabra: derrell | 2005-12-05 13:31:28 -0500
Derrell Lipman [Mon, 5 Dec 2005 23:30:45 +0000 (23:30 +0000)]
r12081:  r10674@cabra:  derrell | 2005-12-05 13:31:28 -0500
 get rid of temporary #if 0 blocks

16 years agor12080: r10673@cabra: derrell | 2005-12-05 13:22:34 -0500
Derrell Lipman [Mon, 5 Dec 2005 23:30:40 +0000 (23:30 +0000)]
r12080:  r10673@cabra:  derrell | 2005-12-05 13:22:34 -0500
 Correct some memory and file descriptor leaks.

 This should fix bugs 3257, 3267 and 3273.

16 years agor12077: Add configure switch to disable libmsrpc build. Add new Makefile target
Lars Müller [Mon, 5 Dec 2005 21:02:23 +0000 (21:02 +0000)]
r12077: Add configure switch to disable libmsrpc build.  Add new Makefile target
installlibmsrpc.  This works the same way as we're already doing it for
libsmbclient.  Default is to build it.

Add a soname to libmsrpc as we do it for libsmbclient.  We already had
the MAJOR and MINOR variable in the Makefile.

16 years agor12076: Ensure setmntent() returns with != NULL in the disk_quotas() Linux
Lars Müller [Mon, 5 Dec 2005 16:51:19 +0000 (16:51 +0000)]
r12076: Ensure setmntent() returns with != NULL in the disk_quotas() Linux
version.

The IRIX 6.2 version is still without this check as I'm not sure if
setmntent() is implemented in the same way.

16 years agor12055: More cruft
Volker Lendecke [Sat, 3 Dec 2005 20:28:18 +0000 (20:28 +0000)]
r12055: More cruft

16 years agor12054: We only have one more warning at -O6. That will take
Jeremy Allison [Sat, 3 Dec 2005 20:18:43 +0000 (20:18 +0000)]
r12054: We only have one more warning at -O6. That will take
some more restructuring to fix.... Coming soon.
Jeremy.

16 years agor12052: Remove unused typedefs
Volker Lendecke [Sat, 3 Dec 2005 20:18:20 +0000 (20:18 +0000)]
r12052: Remove unused typedefs

16 years agor12051: Merge across the lookup_name and lookup_sid work. Lets see how the build...
Volker Lendecke [Sat, 3 Dec 2005 18:34:13 +0000 (18:34 +0000)]
r12051: Merge across the lookup_name and lookup_sid work. Lets see how the build farm
reacts :-)

Volker

16 years agor12046: Fix typo
Volker Lendecke [Sat, 3 Dec 2005 10:15:03 +0000 (10:15 +0000)]
r12046: Fix typo

16 years agor12045: More warning fixes... Just a few more to go.
Jeremy Allison [Sat, 3 Dec 2005 06:58:54 +0000 (06:58 +0000)]
r12045: More warning fixes... Just a few more to go.
Jeremy.

16 years agor12043: It's amazing the warnings you find when compiling on a 64-bit
Jeremy Allison [Sat, 3 Dec 2005 06:46:46 +0000 (06:46 +0000)]
r12043: It's amazing the warnings you find when compiling on a 64-bit
box with gcc4 and -O6...
Fix a bunch of C99 dereferencing type-punned pointer will break
strict-aliasing rules errors. Also added prs_int32 (not uint32...)
as it's needed in one place. Find places where prs_uint32 was being
used to marshall/unmarshall a time_t (a big no no on 64-bits).
More warning fixes to come.
Thanks to Volker for nudging me to compile like this.
Jeremy.

16 years agor12040: merging packaging fixes from release branch
Gerald Carter [Sat, 3 Dec 2005 01:03:16 +0000 (01:03 +0000)]
r12040: merging packaging fixes from release branch

16 years agor12038: This file is no longer used, and no one noticed....
Jeremy Allison [Sat, 3 Dec 2005 00:51:23 +0000 (00:51 +0000)]
r12038: This file is no longer used, and no one noticed....
Jeremy.

16 years agor12031: Added net idmap to common help list.
John Terpstra [Fri, 2 Dec 2005 20:46:15 +0000 (20:46 +0000)]
r12031: Added net idmap to common help list.

16 years agor12027: changing version to 3.0.22pre1 since 3.0.21 is frozen now
Gerald Carter [Fri, 2 Dec 2005 19:30:01 +0000 (19:30 +0000)]
r12027: changing version to 3.0.22pre1 since 3.0.21 is frozen now

16 years agor12015: When smbspool tries to connect to a printer shared on a standalone
Günther Deschner [Fri, 2 Dec 2005 10:26:29 +0000 (10:26 +0000)]
r12015: When smbspool tries to connect to a printer shared on a standalone
Windows XP box, smbspool has to mimic smbclient behaviour and also send
a password-less NTLMSSP session setup.

Guenther

16 years agor12002: patch from marcin to allow for the creation of a File value in the eventlog...
Gerald Carter [Thu, 1 Dec 2005 23:10:27 +0000 (23:10 +0000)]
r12002: patch from marcin to allow for the creation of a File value in the eventlog registry keys so that file properties can be displayed

16 years agor11999: Re-add "passdb expand explicit".
Volker Lendecke [Thu, 1 Dec 2005 14:46:56 +0000 (14:46 +0000)]
r11999: Re-add "passdb expand explicit".

We came to the conclusion that changing the default is something that has to
wait one or two more releases, but it will happen one way or the other.

Volker

16 years agor11998: Add lookupname to rpcclient query_user as a fallback, we now accept both rid
Volker Lendecke [Thu, 1 Dec 2005 12:52:35 +0000 (12:52 +0000)]
r11998: Add lookupname to rpcclient query_user as a fallback, we now accept both rid
and username.

Volker

16 years agor11985: Move to LGPL as per tridge's Samba4 change.
Jeremy Allison [Thu, 1 Dec 2005 00:43:34 +0000 (00:43 +0000)]
r11985: Move to LGPL as per tridge's Samba4 change.
Jeremy.

16 years agor11978: Volker's fix for #3292 (smbclient spins if server terminates
Jeremy Allison [Wed, 30 Nov 2005 17:56:50 +0000 (17:56 +0000)]
r11978: Volker's fix for #3292 (smbclient spins if server terminates
connection).
Jeremy.

16 years agor11976: (Slightly modified) Volker fix for #3293. Use SMBecho instead of
Jeremy Allison [Wed, 30 Nov 2005 17:53:21 +0000 (17:53 +0000)]
r11976: (Slightly modified) Volker fix for #3293. Use SMBecho instead of
chkpath to keep a connection alive.
Jeremy.

16 years agor11975: Fix valgrind error -- bug 3291
Volker Lendecke [Wed, 30 Nov 2005 17:29:33 +0000 (17:29 +0000)]
r11975: Fix valgrind error -- bug 3291

16 years agor11966: fix the build\n\nGuenther
Günther Deschner [Wed, 30 Nov 2005 00:09:14 +0000 (00:09 +0000)]
r11966: fix the build\n\nGuenther

16 years agor11964: rename flag to password_properties in SAM_UNK_INFO_1 because that's what
Günther Deschner [Tue, 29 Nov 2005 23:40:01 +0000 (23:40 +0000)]
r11964: rename flag to password_properties in SAM_UNK_INFO_1 because that's what
it is. (SAM_UNK_INFO_1 should get a better name as well).

Guenther

16 years agor11963: add rpccli_samr_chgpasswd3 from samba4.
Günther Deschner [Tue, 29 Nov 2005 23:23:02 +0000 (23:23 +0000)]
r11963: add rpccli_samr_chgpasswd3 from samba4.

Guenther

16 years agor11962: Bring talloc up to date with Samba4, re-add the
Jeremy Allison [Tue, 29 Nov 2005 23:01:39 +0000 (23:01 +0000)]
r11962: Bring talloc up to date with Samba4, re-add the
talloc_describe_all() function. Fix smbcontrol <pid> pool-usage
as we desparately need it working in the field to track down
memory leaks. Seriously, when new functionality like the
Samba4 talloc is added, don't just disable working functionality
like "pool-usage", fix the damn thing first !
Jeremy.

16 years agor11960: add 'wbinfo --separator' to get the currently active winbind_separator.
Günther Deschner [Tue, 29 Nov 2005 22:46:16 +0000 (22:46 +0000)]
r11960: add 'wbinfo --separator' to get the currently active winbind_separator.
Needed for KDM/GDM login masks.

Guenther

16 years agor11950: If we got a connection oriented cancel pdu we would spin processing it.
Jeremy Allison [Tue, 29 Nov 2005 02:10:52 +0000 (02:10 +0000)]
r11950: If we got a connection oriented cancel pdu we would spin processing it.
Fix that, and also add in comments for all possible CL and CO PDU
types. Make sure we process them correctly.
Jeremy.

16 years agor11947: Back out passdb:expand_explicit until we find consensus. I'll file this as a
Volker Lendecke [Mon, 28 Nov 2005 20:42:18 +0000 (20:42 +0000)]
r11947: Back out passdb:expand_explicit until we find consensus. I'll file this as a
bugzilla entry.

Volker

16 years agor11945: Make us follow the newly documented pathname processing rules:
Jeremy Allison [Mon, 28 Nov 2005 20:14:07 +0000 (20:14 +0000)]
r11945: Make us follow the newly documented pathname processing rules:
"As a special case for directories with large numbers of files, if the
case options are set as follows, "case sensitive = yes", "case
preserve = no", "short preserve case = no" then the "default case"
option will be applied and will modify all filenames sent from the client
when accessing this share."
This is needed as fixing the case preserve rules to only apply to
new filenames broke the large directory fix. Glad we caught this
before release. Thanks to jht for this one.
Jeremy.

16 years agor11943: Don't reset attrs to zero in EA get - we are adding
Jeremy Allison [Mon, 28 Nov 2005 17:03:50 +0000 (17:03 +0000)]
r11943: Don't reset attrs to zero in EA get - we are adding
to the attr list not resetting it.
Jeremy.

16 years agor11942: patch from Marcin to fix the mkdir() in perfcount daemon
Gerald Carter [Mon, 28 Nov 2005 15:56:10 +0000 (15:56 +0000)]
r11942: patch from Marcin to fix the mkdir() in perfcount daemon

16 years agor11938: Fix cifs to handle non-numeric uid and gid parameters and merge trunk and...
Steve French [Mon, 28 Nov 2005 05:43:21 +0000 (05:43 +0000)]
r11938: Fix cifs to handle non-numeric uid and gid parameters and merge trunk and SAMBA_3 versions of mount.cifs and cleanup cifs vfs help.

Modified version of patch from Olaf Kirch <okir at SuSE dot de> for
Novell Bug 120601

16 years agor11936: Fix bug in returning remote time found by Thomas Bork <tombork@web.de>.
Jeremy Allison [Sun, 27 Nov 2005 21:51:46 +0000 (21:51 +0000)]
r11936: Fix bug in returning remote time found by Thomas Bork <tombork@web.de>.
get_time_zone() was overwriting static buffer returned by
gmtime(). Lars - this is a mandatory fix for the next patch...
Jeremy.

16 years agor11927: No users or groups to return in BUILTIN domain.
Jeremy Allison [Sun, 27 Nov 2005 01:26:52 +0000 (01:26 +0000)]
r11927: No users or groups to return in BUILTIN domain.
Jeremy.

16 years agor11924: Added Volkers's (C) to srv_samr_nt.c, removed separate "builtin"
Jeremy Allison [Sun, 27 Nov 2005 01:17:24 +0000 (01:17 +0000)]
r11924: Added Volkers's (C) to srv_samr_nt.c, removed separate "builtin"
search enumeration, fixed count of groups and users to return
zero if we're getting domain info on the builtin domain (need
to fix the enumgroup and enumuser calls also). Added count_sam_aliases
to return the correct alias count. Need to push the SID arg
down into the group mapping interface so we only return the
correct aliases. Upped passdb version numer for Volkers
changes. SAM-MYSQL guys - you will need to fix your backend
now. More tests needed.
Jeremy.

16 years agor11923: Add samr_lookup_rids for the builtin domain. Doing it this way feels a bit
Volker Lendecke [Sat, 26 Nov 2005 22:28:41 +0000 (22:28 +0000)]
r11923: Add samr_lookup_rids for the builtin domain. Doing it this way feels a bit
wrong, but so far we don't have proper multi-domain support in passdb yet...

Volker

16 years agor11922: Looks bigger than it is: There's no point in allocating arrays in
Volker Lendecke [Sat, 26 Nov 2005 22:04:28 +0000 (22:04 +0000)]
r11922: Looks bigger than it is: There's no point in allocating arrays in
samr_lookup_rids twice. It was done in the srv_samr_nt.c code as well as in
the pdb module. Remove the latter, this might happen more often.

Volker

16 years agor11921: samr_open_domain can only open "our" domain and BUILTIN.
Volker Lendecke [Sat, 26 Nov 2005 21:35:43 +0000 (21:35 +0000)]
r11921: samr_open_domain can only open "our" domain and BUILTIN.

Volker

16 years agor11920: Rename local_lookup_rid to lookup_global_sam_rid, add lookup_builtin_rid.
Volker Lendecke [Sat, 26 Nov 2005 21:02:48 +0000 (21:02 +0000)]
r11920: Rename local_lookup_rid to lookup_global_sam_rid, add lookup_builtin_rid.

Volker

16 years agor11919: The generic mappings in srv_samr_nt.c are only used there -- make them
Volker Lendecke [Sat, 26 Nov 2005 20:28:12 +0000 (20:28 +0000)]
r11919: The generic mappings in srv_samr_nt.c are only used there -- make them
static.

One long overdue simplification: Change local_lookup_sid to local_lookup_rid
its responsible for "our" domain only, in fact it checked for it.

Volker

16 years agor11918: Remove two unused variables
Volker Lendecke [Sat, 26 Nov 2005 19:22:17 +0000 (19:22 +0000)]
r11918: Remove two unused variables

16 years agor11917: Move nt_token_to_group_list to srv_netlog_nt.c. srv_util.c is empty now.
Volker Lendecke [Sat, 26 Nov 2005 19:17:57 +0000 (19:17 +0000)]
r11917: Move nt_token_to_group_list to srv_netlog_nt.c. srv_util.c is empty now.

Volker

16 years agor11916: auth_get_sam_account is only used in auth_rhosts.c -- move it there
Volker Lendecke [Sat, 26 Nov 2005 18:20:58 +0000 (18:20 +0000)]
r11916: auth_get_sam_account is only used in auth_rhosts.c -- move it there

16 years agor11915: Remove unused extern declarations
Volker Lendecke [Sat, 26 Nov 2005 17:54:24 +0000 (17:54 +0000)]
r11915: Remove unused extern declarations

16 years agor11914: After talking to Jeremy, implement passdb:expand_explicit with a default of
Volker Lendecke [Sat, 26 Nov 2005 09:50:54 +0000 (09:50 +0000)]
r11914: After talking to Jeremy, implement passdb:expand_explicit with a default of
no. This changes our default behaviour.

Sorry, Ingo, this *is* a bug that needs fixing.

Jerry, you might want to put a marker into the WHATSNEW.txt when this is due.

Volker

16 years agor11909: Implement 'reset on zero vc'. This kills other connections when a session
Volker Lendecke [Fri, 25 Nov 2005 12:31:40 +0000 (12:31 +0000)]
r11909: Implement 'reset on zero vc'. This kills other connections when a session
setup comes in with the vc (virtual connection) field set to zero. This is
done by Windows, probably you can tweak that by some registry key.

This boolean option controls whether an incoming session setup
should kill other connections coming from the same IP. This matches
        the default Windows 2003 behaviour.

Setting this parameter to yes becomes necessary when you have a flaky
network and windows decides to reconnect while the old connection
still has files with share modes open. These files become inaccessible
over the new connection.

The client sends a zero VC on the new connection, and Windows 2003
kills all other connections coming from the same IP. This way the
locked files are accessible again.

Please be aware that enabling this option will kill connections behind
a masquerading router.

Volker

16 years agor11898: Add a missing become_root().
Volker Lendecke [Fri, 25 Nov 2005 10:19:24 +0000 (10:19 +0000)]
r11898: Add a missing become_root().

Volker

16 years agor11886: Fix 3187: logon hours restrictions were off corresponding to our offset from
Jim McDonough [Wed, 23 Nov 2005 22:08:57 +0000 (22:08 +0000)]
r11886: Fix 3187: logon hours restrictions were off corresponding to our offset from
GMT.  Use gmtime() instead of localtime() in the calc, but still use
localtime() in displaying it.

16 years agor11876: When we are using START_TLS to secure the LDAP connection, we *have* to
Günther Deschner [Wed, 23 Nov 2005 11:29:55 +0000 (11:29 +0000)]
r11876: When we are using START_TLS to secure the LDAP connection, we *have* to
call START_TLS again after rebinding to another LDAP server. (ldaps://
uri's are handled at by recent versions of OpenLDAP).

Guenther

16 years agor11875: Allow to use START_TLS (by manually setting "ldap ssl = start_tls") for
Günther Deschner [Wed, 23 Nov 2005 11:21:16 +0000 (11:21 +0000)]
r11875: Allow to use START_TLS (by manually setting "ldap ssl = start_tls") for
LDAP connections to ADS (Windows 2003).

Guenther

16 years agor11874: Merge LDAP connection setup in lib/smbldap.c and pdb_nds.c.
Günther Deschner [Wed, 23 Nov 2005 11:17:04 +0000 (11:17 +0000)]
r11874: Merge LDAP connection setup in lib/smbldap.c and pdb_nds.c.
Also allow to use START_TLS in the pdb_nds_update_login_attempts
function when doing simple binds to eDir.

Guenther

16 years agor11867: attempt at fixing the compile issue with nss_winbind.so on HP-UX caused by...
Gerald Carter [Tue, 22 Nov 2005 20:48:56 +0000 (20:48 +0000)]
r11867: attempt at fixing the compile issue with nss_winbind.so on HP-UX caused by Solaris specific return codes

16 years agor11865: The only way to stop multiple LDAP searches is to agressively cache
Jeremy Allison [Tue, 22 Nov 2005 20:26:23 +0000 (20:26 +0000)]
r11865: The only way to stop multiple LDAP searches is to agressively cache
results. We now cache them for 10 seconds, down from 30 seconds
(however each re-use will refresh the idle timeout). Any set calls
will flush the cache.
Jeremy.

16 years agor11864: fix build breakage with solaris LDAP patch (my fault)
Gerald Carter [Tue, 22 Nov 2005 19:48:33 +0000 (19:48 +0000)]
r11864: fix build breakage with solaris LDAP patch (my fault)

16 years agor11863: BUG 3196: patch from Alex Deiter <tiamat@komi.mts.ru> to compile against...
Gerald Carter [Tue, 22 Nov 2005 17:15:28 +0000 (17:15 +0000)]
r11863: BUG 3196: patch from Alex Deiter <tiamat@komi.mts.ru> to compile against the Sun LDAP client libs.  But not for AD support; just ldap support

16 years agor11861: Fix inspired by Thomas Neumann <t.neumann@iku-ag.de> to ensure that
Jeremy Allison [Tue, 22 Nov 2005 16:21:52 +0000 (16:21 +0000)]
r11861: Fix inspired by Thomas Neumann <t.neumann@iku-ag.de> to ensure that
default case applies only to new files and correctly examines 8.3
and long names.
Jeremy.

16 years agor11860: BUG 3156: don't use find_service() when explicitly looking for a printer...
Gerald Carter [Tue, 22 Nov 2005 15:52:22 +0000 (15:52 +0000)]
r11860: BUG 3156: don't use find_service() when explicitly looking for a printer as the username map might get in the way

16 years agor11859: Another place where the SE_GROUP constants read better then "7".
Günther Deschner [Tue, 22 Nov 2005 14:41:40 +0000 (14:41 +0000)]
r11859: Another place where the SE_GROUP constants read better then "7".

Guenther

16 years agor11858: Fill in the clientside TRUSTED_DOMAIN_INFO_EX query.
Günther Deschner [Tue, 22 Nov 2005 14:38:49 +0000 (14:38 +0000)]
r11858: Fill in the clientside TRUSTED_DOMAIN_INFO_EX query.

Guenther

16 years agor11857: Fix the build.
Günther Deschner [Tue, 22 Nov 2005 14:32:29 +0000 (14:32 +0000)]
r11857: Fix the build.

Guenther

16 years agor11856: Replace unknown1 with group_attr.
Günther Deschner [Tue, 22 Nov 2005 14:29:14 +0000 (14:29 +0000)]
r11856: Replace unknown1 with group_attr.

Can anyone remember why we initialize groups only with 0x03 instead of 0x07 ?

Guenther

16 years agor11855: patch from Aruna Prabakar for checking that the spooler si running on HP-UX
Gerald Carter [Tue, 22 Nov 2005 14:20:02 +0000 (14:20 +0000)]
r11855: patch from Aruna Prabakar for checking that the spooler si running on HP-UX