metze/samba/wip.git
16 years agor12182: Cosmetic cleanup
Volker Lendecke [Sun, 11 Dec 2005 16:55:28 +0000 (16:55 +0000)]
r12182: Cosmetic cleanup
(This used to be commit 81c358b511457fbc6304845acb4bfbf1b4adf062)

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

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

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

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

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

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
(This used to be commit 209e4f8793fe9375fc6af1aedb5bd1fe57193bbc)

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

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

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

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

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

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

Volker
(This used to be commit 8a7d6eb2c081c0d74b62aa76dc243946df62ced2)

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...???
(This used to be commit 86ab4cf42b3bfe78239ee0b367bff9cfc5484107)

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
(This used to be commit 99fbe44ac569f218bd1b4d1026c18cc72f0a1f0e)

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

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

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

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

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

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

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
(This used to be commit 376445c90b05c36206c87c974c13e5f9297f35eb)

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

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

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

16 years agor12055: More cruft
Volker Lendecke [Sat, 3 Dec 2005 20:28:18 +0000 (20:28 +0000)]
r12055: More cruft
(This used to be commit 4d91f9501cd041ee42410eeace6a9acd9cc57d1c)

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

16 years agor12052: Remove unused typedefs
Volker Lendecke [Sat, 3 Dec 2005 20:18:20 +0000 (20:18 +0000)]
r12052: Remove unused typedefs
(This used to be commit 612ec4de75ad06f2b12176439f96f8e5662a7d77)

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
(This used to be commit 9f99d04a54588cd9d1a1ab163ebb304437f932f7)

16 years agor12046: Fix typo
Volker Lendecke [Sat, 3 Dec 2005 10:15:03 +0000 (10:15 +0000)]
r12046: Fix typo
(This used to be commit b9d1a659109daeeb625f3e6caf7ec706ccdde230)

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

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

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
(This used to be commit 47a9f2c3d6039a07a6970ac181aeb2888d47a353)

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

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

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

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
(This used to be commit 1136862e6d6058df4ed027b75dbae40374712bac)

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
(This used to be commit 270fef5175559ba6345bb2c3e264c527a6a084c5)

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
(This used to be commit 30fcdf84d8943e630af78a96320607c42e4d15aa)

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

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

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

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

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
(This used to be commit 9a6ce67fbf89ea7fc9eed72776dff4712ba67e2b)

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
(This used to be commit 53f15a0881de489e809bb58217ecabccd6d77e2c)

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

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
(This used to be commit 0705fed566efdeab05d605dd239afe67ca5e9811)

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

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

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

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

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

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

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
(This used to be commit 3e05e88bb6c0618ecc460045b72d86e82929af01)

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
(This used to be commit 0981552deab9f73d2f784e5da52878ffdf845031)

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

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

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

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

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
(This used to be commit 57f0cf8cdd6928f4759036e5dd53d41736aa910d)

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
(This used to be commit 049920ce4f78723bc884c46b2ee4ef22f25c482c)

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

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
(This used to be commit 35ba5e083cddfa5ddba5ad84233262fadfbe87b2)

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
(This used to be commit 5524d662954165eef3fdd15986fe0b4de09180d7)

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

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

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
(This used to be commit 3c35fb642a187b785816bb8cbb3573df9612a9f8)

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
(This used to be commit 6622db97bb575b028b3c0bc016b91f62a8c561a2)

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
(This used to be commit 5629ca16235f0aa21fea3afd9e414309e4e1374e)

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

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

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
(This used to be commit 3ccea032cb681426a1b29907a44b87b8a94e0840)

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
(This used to be commit 95543fab0f6aa1c483b40247c16cde79cbc9c012)

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
(This used to be commit 04a3ac5e50e93f74dfddfead5cb3f335ce991e9a)

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

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

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

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

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

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
(This used to be commit 46bf28c81c27dfdc412318a83bf565211a58a47d)

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

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
(This used to be commit 02f13dee6d0bbca71a991682bfe214ed8363e818)

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
(This used to be commit 6508cb1c805dee291c87a57998f0f1f53b9a6013)

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
(This used to be commit 3282c7c458d390547fbaca44821eff376e8f9aaa)

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
(This used to be commit 017775f2879454f939c35196b3db6d1f2b9d1333)

16 years agor11854: Remove unused DOM_SID.
Günther Deschner [Tue, 22 Nov 2005 14:13:56 +0000 (14:13 +0000)]
r11854: Remove unused DOM_SID.

Guenther
(This used to be commit 8609484ff65aaf075d2f768960246dad398855a4)

16 years agor11853: Add Dsr_GetSiteName (handy for experimenting with GPOs).
Günther Deschner [Tue, 22 Nov 2005 14:10:49 +0000 (14:10 +0000)]
r11853: Add Dsr_GetSiteName (handy for experimenting with GPOs).

Guenther
(This used to be commit c54430a7b5e40d3bdf8afdc813eb722c0a3b861e)

16 years agor11852: Fill in samr_get_dom_pwinfo based on Samba4.
Günther Deschner [Tue, 22 Nov 2005 13:58:51 +0000 (13:58 +0000)]
r11852: Fill in samr_get_dom_pwinfo based on Samba4.

Guenther
(This used to be commit a8bc4bc902075cfd009dc92674c4560a44a74277)

16 years agor11851: Display correct error string.
Günther Deschner [Tue, 22 Nov 2005 13:33:44 +0000 (13:33 +0000)]
r11851: Display correct error string.

Guenther
(This used to be commit 4d681f560e59dd483f580c5fe5299af6242ae7c2)

16 years agor11847: Fix typo.
Günther Deschner [Tue, 22 Nov 2005 12:45:53 +0000 (12:45 +0000)]
r11847: Fix typo.

Guenther
(This used to be commit 6aefb3aebbbba486ea44ec9ef7bc46e0776eeba8)

16 years agor11846: Destroy the TALLOC_CTX on error in the Kerberos session setup and give a
Günther Deschner [Tue, 22 Nov 2005 10:22:59 +0000 (10:22 +0000)]
r11846: Destroy the TALLOC_CTX on error in the Kerberos session setup and give a
more precise inline comment why PAC verification may fail.

Guenther
(This used to be commit 43b57715e9b44a0a0c7cc7fe3674a5fd4369e78b)

16 years agor11845: Removed error code list as it isn't correct for Linux.
Jeremy Allison [Tue, 22 Nov 2005 06:07:26 +0000 (06:07 +0000)]
r11845: Removed error code list as it isn't correct for Linux.
Jeremy.
(This used to be commit bea6fa293e2c1ee85ae72dcee00db13cb1fe5bb1)

16 years agor11841: Fix #3262 from Timur Bakeyev to improve reporting on FreeBSD DOS
Jeremy Allison [Tue, 22 Nov 2005 06:04:00 +0000 (06:04 +0000)]
r11841: Fix #3262 from Timur Bakeyev to improve reporting on FreeBSD DOS
attribute errors.
Jeremy.
(This used to be commit 8f2e472fa35098b1be16083ce9b5c06fdf5dbcd1)

16 years agor11839: Info level 0x101 is really a protocol NT level.
Jeremy Allison [Tue, 22 Nov 2005 05:21:26 +0000 (05:21 +0000)]
r11839: Info level 0x101 is really a protocol NT level.
Fix bug #3274 from Guenter Kukkukk <guenter.kukkukk@kukkukk.com>
Jeremy.
(This used to be commit e4b3b70ef1c0fea3252b73c55ea3e9cad7229afd)

16 years agor11833: fix build issues in smbget with the Sun compiler. Reported by Richard Bollinger
Gerald Carter [Mon, 21 Nov 2005 15:52:10 +0000 (15:52 +0000)]
r11833: fix build issues in smbget with the Sun compiler. Reported by Richard Bollinger
(This used to be commit d381c125b0ffc269fd8671a855c9b899966a2320)

16 years agor11830: patch from Rashid N. Achilov <shelton@granch.ru> to add descriptions for...
Gerald Carter [Mon, 21 Nov 2005 13:00:36 +0000 (13:00 +0000)]
r11830: patch from Rashid N. Achilov <shelton@granch.ru> to add descriptions for some common services
(This used to be commit 69e168197e576bac6d4b29bdca876243eb7caf68)

16 years agor11799: Added OpenSSH fix for "%.*s" format crash. From Darren Tucker
Jeremy Allison [Sat, 19 Nov 2005 01:14:05 +0000 (01:14 +0000)]
r11799: Added OpenSSH fix for "%.*s" format crash. From Darren Tucker
<dtucker@zip.com.au>
Jeremy.
(This used to be commit b7dee71f26b26e2aed4124c7de52fa6771ce40dd)

16 years agor11793: Fix the SAMR cache so it works across completely insane
Jeremy Allison [Fri, 18 Nov 2005 23:15:47 +0000 (23:15 +0000)]
r11793: Fix the SAMR cache so it works across completely insane
client behaviour (ie.:
open pipe/open SAMR handle/enumerate 0 - 1024
close SAMR handle, close pipe.
open pipe/open SAMR handle/enumerate 1024 - 2048...
close SAMR handle, close pipe.
And on ad-nausium. Amazing.... probably object-oriented
client side programming in action yet again.
This change should *massively* improve performance when
enumerating users from an LDAP database.
Jeremy.
(This used to be commit 8ce705d9cc1b6a79d710a10ff38f72a0f1006dda)

16 years agor11790: Avoid infinite retry to gather a connection.
Günther Deschner [Fri, 18 Nov 2005 14:33:12 +0000 (14:33 +0000)]
r11790: Avoid infinite retry to gather a connection.

Guenther
(This used to be commit 7b6195b421b6c572d82d00b9a11bcf8579456c21)

16 years agor11784: Fix minor glitch found by Rainer Weikusat <rainer.weikusat@sncag.com> --...
Volker Lendecke [Fri, 18 Nov 2005 13:02:19 +0000 (13:02 +0000)]
r11784: Fix minor glitch found by Rainer Weikusat <rainer.weikusat@sncag.com> -- Thanks
(This used to be commit 1128d054dd8d387e529bf92dad3a3db5e251d61d)