jra/samba/.git
11 years agor15644: Now that we are referencing uint32_t and other data types
Paul Green [Tue, 16 May 2006 17:02:26 +0000 (17:02 +0000)]
r15644: Now that we are referencing uint32_t and other data types
defined in <stdint.h>, ensure that it is present. (Not all
implementations pull it in when <sys/types.h> is used).

Paul
(This used to be commit dafe36ec4cff4e5f94e35841966007e3e4758582)

11 years agor15635: Fix a bogus gcc uninit variable message
Volker Lendecke [Tue, 16 May 2006 15:14:39 +0000 (15:14 +0000)]
r15635: Fix a bogus gcc uninit variable message
(This used to be commit 53f7104b4fbb4f59c18458f589e25e7b536642cb)

11 years agor15634: Prevent passwords of winbindd's list of credential caches from beeing
Günther Deschner [Tue, 16 May 2006 14:29:39 +0000 (14:29 +0000)]
r15634: Prevent passwords of winbindd's list of credential caches from beeing
swapped to disc using mlock(). (patch was reviewed by Jeremy).

Guenther
(This used to be commit 206cdbb8e9a4a0900060d56510e58b85a2b8aec5)

11 years agor15633: Minor smbldap/pdb_ldap cleanup
Günther Deschner [Tue, 16 May 2006 13:26:49 +0000 (13:26 +0000)]
r15633: Minor smbldap/pdb_ldap cleanup

Guenther
(This used to be commit 1b5a712467ab8f35211b59bb703a42bdc5e0dfc0)

11 years agor15632: Remove length limitation from the winbind cache cleanup traversal.
Günther Deschner [Tue, 16 May 2006 11:23:29 +0000 (11:23 +0000)]
r15632: Remove length limitation from the winbind cache cleanup traversal.

Guenther
(This used to be commit 181fa02497e353a36e311f94f5bec2e9cfd1b56e)

11 years agor15631: Add a new option "enable core files". Administrators can use this to
James Peach [Tue, 16 May 2006 02:50:49 +0000 (02:50 +0000)]
r15631: Add a new option "enable core files". Administrators can use this to
disable automatic core file dumping. Core files are enabled by default.
(This used to be commit b59189280057849b67ac65f31cec23b859e21c91)

11 years agor15630: adapt smbclient fix to smbtree to enable long share names
Jim McDonough [Tue, 16 May 2006 01:21:16 +0000 (01:21 +0000)]
r15630: adapt smbclient fix to smbtree to enable long share names
(This used to be commit ae56154fc7694042496a55d4dade8ef1a7ba361c)

11 years agor15620: pass 'target:samba3=yes' to samba4's smbtorture when running samba3's make...
Stefan Metzmacher [Mon, 15 May 2006 13:07:14 +0000 (13:07 +0000)]
r15620: pass 'target:samba3=yes' to samba4's smbtorture when running samba3's make test

we can use this in samba4's smbtorture to disable tests sections which doesn't pass
against samba3

metze
(This used to be commit fab4de70b65ab5b9d3a93db46f13c7bab0e70464)

11 years agor15611: Remove used but uninitialised variable "count".
James Peach [Mon, 15 May 2006 06:54:13 +0000 (06:54 +0000)]
r15611: Remove used but uninitialised variable "count".
(This used to be commit 71fd0d3de4a02b9a7b67914f6412f18ec0bb5e7a)

11 years agor15610: Fix Coverity #288 - possible null deref.
Jeremy Allison [Mon, 15 May 2006 04:51:46 +0000 (04:51 +0000)]
r15610: Fix Coverity #288 - possible null deref.
Jeremy.
(This used to be commit b108ab7b122cc607f31772614b221379403b211b)

11 years agor15608: Fix a couple of Coverity errors
Volker Lendecke [Mon, 15 May 2006 03:51:45 +0000 (03:51 +0000)]
r15608: Fix a couple of Coverity errors
(This used to be commit 696e210bf6688e8b2f408559768173b4bdbda979)

11 years agor15601: Fix segfaults with 'security=share' and 'guest only = yes'
Volker Lendecke [Sun, 14 May 2006 15:24:14 +0000 (15:24 +0000)]
r15601: Fix segfaults with 'security=share' and 'guest only = yes'

Volker
(This used to be commit ea7cced6bcb3cb7d817e4cb072774692e4afedb0)

11 years agor15600: Correctly fill in the gid for local users.
Volker Lendecke [Sun, 14 May 2006 14:39:10 +0000 (14:39 +0000)]
r15600: Correctly fill in the gid for local users.

Volker
(This used to be commit 6071dd5db0dbb79a80b248ab93942911bf08fd2b)

11 years agor15597: more ads join fixes -- we can only set the PWDNOEXP and DES_ONLY acb flags...
Gerald Carter [Sun, 14 May 2006 12:58:52 +0000 (12:58 +0000)]
r15597: more ads join fixes -- we can only set the PWDNOEXP and DES_ONLY acb flags on the setuserinfo(),  not the createuser info call
(This used to be commit d933ac273db5977fb41954175bdc228b688bfd6e)

11 years agor15589: While trying to understand the vuid code I found that security=share is broken
Volker Lendecke [Sat, 13 May 2006 23:05:53 +0000 (23:05 +0000)]
r15589: While trying to understand the vuid code I found that security=share is broken
right now. r14112 broke it, in 3.0.22 register_vuid for security=share returns
UID_FIELD_INVALID which in current 3_0 is turned into an error condition. This
makes sure that we only call register_vuid if sec!=share and meanwhile also
fixes a little memleak.

Then I also found a crash in smbclient with sec=share and hostmsdfs=yes.

There's another crash with sec=share when coming from w2k3, but I need sleep
now.

Someone (jerry,jra?) please review the sesssetup.c change.

Thanks,

Volker
(This used to be commit 8059d0ae395604503cad3d9f197928305923e3f5)

11 years agor15583: Add a comment while trying to understand this code
Volker Lendecke [Sat, 13 May 2006 21:10:00 +0000 (21:10 +0000)]
r15583: Add a comment while trying to understand this code
(This used to be commit 7945c935bf197afb61286ddeb0e579078362a1fc)

11 years agor15571: Fix Coverity bug #285
Volker Lendecke [Sat, 13 May 2006 17:28:21 +0000 (17:28 +0000)]
r15571: Fix Coverity bug #285
(This used to be commit 2cf503d7da08319f318217f6fe8f85c18bf0dffb)

11 years agor15570: Fix Coverity bug # 286. I really wonder why gcc -O1 did not catch this one.
Volker Lendecke [Sat, 13 May 2006 17:21:07 +0000 (17:21 +0000)]
r15570: Fix Coverity bug # 286. I really wonder why gcc -O1 did not catch this one.

Volker
(This used to be commit c6bf2c8922e612278349fe53ca11f6be6c819009)

11 years agor15569: Fix Coverity bug # 287. Jerry, can you check if WERR_NOMEM is a correct error
Volker Lendecke [Sat, 13 May 2006 17:17:07 +0000 (17:17 +0000)]
r15569: Fix Coverity bug # 287. Jerry, can you check if WERR_NOMEM is a correct error
code here?

Thanks,

Volker
(This used to be commit 5787bd0ee90b081ae12a4a976893cb297fa7bed4)

11 years agor15566: Fix Coverity bug # 284. The lp_ldap_xx_suffix function only return NULL if
Volker Lendecke [Sat, 13 May 2006 17:10:20 +0000 (17:10 +0000)]
r15566: Fix Coverity bug # 284. The lp_ldap_xx_suffix function only return NULL if
talloc fails.

Volker
(This used to be commit 0ece5b32f97f162be0af2ea3354a597c56ed4373)

11 years agor15562: Attempt to fix Coverity bug # 283
Volker Lendecke [Sat, 13 May 2006 09:27:56 +0000 (09:27 +0000)]
r15562: Attempt to fix Coverity bug # 283
(This used to be commit 3762effca5e1e2bbb2d1d9dd8504c502485eca7d)

11 years agor15561: Should re-fix older systems without RC4-HMAC support
Gerald Carter [Sat, 13 May 2006 05:06:20 +0000 (05:06 +0000)]
r15561: Should re-fix older systems without RC4-HMAC support
(This used to be commit 00c795e3660a65419e707706abf48916dcd7f850)

11 years agor15560: Since the hotel doesn't have Sci-Fi and no "Doctor Who"....
Gerald Carter [Sat, 13 May 2006 04:39:19 +0000 (04:39 +0000)]
r15560: Since the hotel doesn't have Sci-Fi and no "Doctor Who"....

Re-add the capability to specify an OU in which to create
the machine account.  Done via LDAP prior to the RPC join.
(This used to be commit b69ac0e30441faea7a7d677b6bb551aa8ffbf55d)

11 years agor15559: Smaller fixes for the new cldap code:
Günther Deschner [Sat, 13 May 2006 01:29:04 +0000 (01:29 +0000)]
r15559: Smaller fixes for the new cldap code:
* replace printf to stderr with DEBUG statements as they get printed in
  daemons
* "net ads lookup" return code

Guenther
(This used to be commit 8dd925c5fbfcbe711c596d08e8eadc19607d5492)

11 years agor15558: Do not wait endless for a CLDAP reply when the LDAP server is
Günther Deschner [Fri, 12 May 2006 23:20:39 +0000 (23:20 +0000)]
r15558: Do not wait endless for a CLDAP reply when the LDAP server is
unavailable; use "ldap timeout" handling.

Jerry, please check.

Guenther
(This used to be commit 821bbb4566c4b3f9798054ed3bf772db0c9ae3f2)

11 years agor15556: Better fix for leading // or \\ from "David R. Linn"
Jeremy Allison [Fri, 12 May 2006 23:13:36 +0000 (23:13 +0000)]
r15556: Better fix for leading // or \\ from "David R. Linn"
<drl@vuse.vanderbilt.edu>.
Jeremy.
(This used to be commit 502f3e911a2e9e3e0e4a4eae34885329e0624dd5)

11 years agor15555: Make "change notify timeout" a per-share parameter - used
Jeremy Allison [Fri, 12 May 2006 23:10:01 +0000 (23:10 +0000)]
r15555: Make "change notify timeout" a per-share parameter - used
when there's no kernel or FAM change notify. If set to zero
this will turn off change notify for the share except when
we ourselves change something (renames / deletes etc. ).
Designed to help on large directory shares where a new
changenotify is issued between each delete. This will
be fixed correctly when we move to internal change notify
(eg. back-port Samba4 changenotify).
Jeremy.
(This used to be commit 5a17bffbcd5082fde79c241468a0ff2b5903d540)

11 years agor15553: minor rpcclient cleanup: length is already set in data_blob.
Günther Deschner [Fri, 12 May 2006 23:08:31 +0000 (23:08 +0000)]
r15553: minor rpcclient cleanup: length is already set in data_blob.

Guenther
(This used to be commit a80f3660573872e7a1c9e4d37262c830d68415e1)

11 years agor15552: Fix segfault...
Günther Deschner [Fri, 12 May 2006 23:05:01 +0000 (23:05 +0000)]
r15552: Fix segfault...

Guenther
(This used to be commit ff93fc7c1e22c035f6f1405d263702bbb9d61575)

11 years agor15550: make sure to pick up the -lresolv libs on systems without -lldap to pull...
Gerald Carter [Fri, 12 May 2006 21:31:52 +0000 (21:31 +0000)]
r15550: make sure to pick up the -lresolv libs on systems without -lldap to pull it in
(This used to be commit 4f3a1c2c58a4087f3a2f72f471cbaf2bad5addfe)

11 years agor15549: removing rhosts and 'hosts equiv' authentication features
Gerald Carter [Fri, 12 May 2006 21:00:52 +0000 (21:00 +0000)]
r15549: removing rhosts and 'hosts equiv' authentication features
(This used to be commit d19dad88155f985f113c667b6bdad5a1b25eca18)

11 years agor15548: remove unused 'wins partners'
Gerald Carter [Fri, 12 May 2006 20:45:30 +0000 (20:45 +0000)]
r15548: remove unused 'wins partners'
(This used to be commit 1316fd4267f37cd88ab5c63d22df81ace17205bc)

11 years agor15547: say goodbye to --with-ldapsam (although the ldapsam_compat passdb backend...
Gerald Carter [Fri, 12 May 2006 20:40:22 +0000 (20:40 +0000)]
r15547: say goodbye to --with-ldapsam (although the ldapsam_compat passdb backend still exists
(This used to be commit 7d99e05ee8f60b2b4d18405dc8be6f9ff822c3ad)

11 years agor15546: When debugging is enabled be just a little more verbose in logging in
Günther Deschner [Fri, 12 May 2006 19:16:10 +0000 (19:16 +0000)]
r15546: When debugging is enabled be just a little more verbose in logging in
pam_winbind.

Guenther
(This used to be commit bf077fb2268b79faffd1fdda04847c37ffead32d)

11 years agor15544: make sure to define NS_PACKETSZ for Bind 4 interfaces (fix build on us4)
Gerald Carter [Fri, 12 May 2006 16:38:51 +0000 (16:38 +0000)]
r15544: make sure to define NS_PACKETSZ for Bind 4 interfaces (fix build on us4)
(This used to be commit 18f2e1a4e19a83afec6573a020f3a913f07d19dc)

11 years agor15543: New implementation of 'net ads join' to be more like Windows XP.
Gerald Carter [Fri, 12 May 2006 15:17:35 +0000 (15:17 +0000)]
r15543: New implementation of 'net ads join' to be more like Windows XP.
The motivating factor is to not require more privileges for
the user account than Windows does when joining a domain.

The points of interest are

* net_ads_join() uses same rpc mechanisms as net_rpc_join()
* Enable CLDAP queries for filling in the majority of the
  ADS_STRUCT->config information
* Remove ldap_initialized() from sam/idmap_ad.c and
  libads/ldap.c
* Remove some unnecessary fields from ADS_STRUCT
* Manually set the dNSHostName and servicePrincipalName attribute
  using the machine account after the join

Thanks to Guenther and Simo for the review.

Still to do:

* Fix the userAccountControl for DES only systems
* Set the userPrincipalName in order to support things like
  'kinit -k' (although we might be able to just use the sAMAccountName
  instead)
* Re-add support for pre-creating the machine account in
  a specific OU
(This used to be commit 4c4ea7b20f44cd200cef8c7b389d51b72eccc39b)

11 years agor15542: Close the LDAP connection and free the struct, regardless whether the
Günther Deschner [Fri, 12 May 2006 13:29:51 +0000 (13:29 +0000)]
r15542: Close the LDAP connection and free the struct, regardless whether the
simple bind operation was successful or not.

Guenther
(This used to be commit e4734cb99cae189edf49c4d8f4e4324f5c51f443)

11 years agor15541: Only ever store a user's password in a WINBINDD_CCACHE_ENTRY struct when
Günther Deschner [Thu, 11 May 2006 23:07:34 +0000 (23:07 +0000)]
r15541: Only ever store a user's password in a WINBINDD_CCACHE_ENTRY struct when
we have a reason to do so.

Guenther
(This used to be commit 4da79bd10c17277171aad26ee0278f8e5b64abdb)

11 years agor15539: Use portable wrapper functions instead of seteuid
Jeremy Allison [Thu, 11 May 2006 22:47:28 +0000 (22:47 +0000)]
r15539: Use portable wrapper functions instead of seteuid
directly in winbindd.
Jeremy.
(This used to be commit 2e65fcc9def5f1386a33ca4a76e494838e3a0632)

11 years agor15537: Ignore // or \\ in //server or \\server.
Jeremy Allison [Thu, 11 May 2006 18:59:41 +0000 (18:59 +0000)]
r15537: Ignore // or \\ in //server or \\server.
Jeremy.
(This used to be commit 45cfba12cfd87bebd3876087cac0575f586e395f)

11 years agor15531: fix linking of smbmnt and smbumount with socket wrapper
Stefan Metzmacher [Thu, 11 May 2006 09:04:24 +0000 (09:04 +0000)]
r15531: fix linking of smbmnt and smbumount with socket wrapper

metze
(This used to be commit a48b1f7fae538a4220e087a1863015dd8c564005)

11 years agor15529: Initialise our saved uid and gid so that we can tell when
James Peach [Wed, 10 May 2006 22:33:10 +0000 (22:33 +0000)]
r15529: Initialise our saved uid and gid so that we can tell when
we created the profiling shmem segment and don't bogusly
refuse to look at it.
(This used to be commit eb31ef3a0e5e7c3b4029a3c2e124d2df646f10a2)

11 years agor15528: Make the existance of the /etc/security/pam_winbind.conf file
Günther Deschner [Wed, 10 May 2006 21:12:10 +0000 (21:12 +0000)]
r15528: Make the existance of the /etc/security/pam_winbind.conf file
non-critical and fallback to only parse the argv options in that case.

Guenther
(This used to be commit 9dac3ab328e9c7ba374e0efc3fe16d940ecc9d3b)

11 years agor15526: Avoid double \n.
Günther Deschner [Wed, 10 May 2006 11:39:54 +0000 (11:39 +0000)]
r15526: Avoid double \n.

Guenther
(This used to be commit 3546187bb4a74b14071e2c23561e70e57ad13e86)

11 years agor15525: fix compile error on HP-UX reported by Ryan Novosielski
Gerald Carter [Wed, 10 May 2006 06:35:01 +0000 (06:35 +0000)]
r15525: fix compile error on HP-UX reported by Ryan Novosielski
(This used to be commit e439660f916050291107f699e32ba2872ba95fcf)

11 years agor15523: Honour the time_offset also when verifying kerberos tickets. This
Günther Deschner [Tue, 9 May 2006 19:02:26 +0000 (19:02 +0000)]
r15523: Honour the time_offset also when verifying kerberos tickets. This
prevents a nasty failure condition in winbindd's pam_auth where a tgt
and a service ticket could have been succefully retrieved, but just not
validated.

Guenther
(This used to be commit a75dd80c6210d01aff104a86b0a9d39d65f2c348)

11 years agor15519: Fix segfault.
Günther Deschner [Tue, 9 May 2006 08:15:01 +0000 (08:15 +0000)]
r15519: Fix segfault.

Guenther
(This used to be commit a0548914c21bb769c3e97b47c9bc521c595f579b)

11 years agor15516: Use SMB_BIG_UINT in preference to unsigned long long.
James Peach [Tue, 9 May 2006 01:34:31 +0000 (01:34 +0000)]
r15516: Use SMB_BIG_UINT in preference to unsigned long long.
(This used to be commit f06d94382fa0f501fb1da7e308012b91a9eadb44)

11 years agor15509: Preserve errno in fcntl lock wrappers.
James Peach [Mon, 8 May 2006 03:28:26 +0000 (03:28 +0000)]
r15509: Preserve errno in fcntl lock wrappers.
(This used to be commit 624318245fbd4060617d9404700a04df23d667ac)

11 years agor15508: Use clock_gettime for profiling timstamps if it is available. Use
James Peach [Mon, 8 May 2006 03:20:49 +0000 (03:20 +0000)]
r15508: Use clock_gettime for profiling timstamps if it is available. Use
the fastest clock available on uniprocessors.
(This used to be commit d44862928206b524f826bd7c2997ab5353c0b6a0)

11 years agor15496: current_user_info is not referenced in loadparm.c
Volker Lendecke [Sun, 7 May 2006 17:40:52 +0000 (17:40 +0000)]
r15496: current_user_info is not referenced in loadparm.c
(This used to be commit 800f4cd158c5de8a0031abf4d030f633d784999f)

11 years agor15495: current_user_info is not referenced in process.c
Volker Lendecke [Sun, 7 May 2006 17:33:10 +0000 (17:33 +0000)]
r15495: current_user_info is not referenced in process.c
(This used to be commit 8cedbbfbcf137b6a0c0323572982e9cb25648b0b)

11 years agor15494: Fix debug statement
Volker Lendecke [Sun, 7 May 2006 17:11:40 +0000 (17:11 +0000)]
r15494: Fix debug statement
(This used to be commit 8cdfe404ef095901bf1d87fb80b3252eca49c8df)

11 years agor15492: Without this patch, the LDAP client libs will call abort() in
Andrew Bartlett [Sun, 7 May 2006 15:05:32 +0000 (15:05 +0000)]
r15492: Without this patch, the LDAP client libs will call abort() in
ldap_get_values_len, because they were handed a NULL msgs pointer, for
example in ads_pull_sid().

This occurs when the AD server fails at the connect stage.  (The
toubled AD server is actually Samba4 in my example).

Andrew Bartlett
(This used to be commit 221a6de7d028f5c9bb9da038650868582d44e7e5)

11 years agor15483: Fix 'declaration after code' warnings.
Volker Lendecke [Sun, 7 May 2006 09:21:39 +0000 (09:21 +0000)]
r15483: Fix 'declaration after code' warnings.

Volker
(This used to be commit 7729799be9984a02a2a309289067b7500696e657)

11 years agor15479: Check in patch from bug # 3746 -- Thanks Timur
Volker Lendecke [Sat, 6 May 2006 20:17:12 +0000 (20:17 +0000)]
r15479: Check in patch from bug # 3746 -- Thanks Timur
(This used to be commit ac79bba1a118635ed18d23cf84bdf15923b354c0)

11 years agor15478: Likewise for bug # 3763
Volker Lendecke [Sat, 6 May 2006 20:12:42 +0000 (20:12 +0000)]
r15478: Likewise for bug # 3763
(This used to be commit 7188ec6bd81715c4df17528bca2b2e658173043f)

11 years agor15477: Committing parts of the patch Timur has submitted for bug 2961, as agreed...
Volker Lendecke [Sat, 6 May 2006 20:05:43 +0000 (20:05 +0000)]
r15477: Committing parts of the patch Timur has submitted for bug 2961, as agreed upon
on irc.

Thanks,

Volker
(This used to be commit 51b415d2306f8244d7449756e4fa873adfc8fbe7)

11 years agor15476: Transfer the was_mapped flag from user_info to server_info also in auth_sam
Volker Lendecke [Sat, 6 May 2006 19:42:25 +0000 (19:42 +0000)]
r15476: Transfer the was_mapped flag from user_info to server_info also in auth_sam
and auth_domain. Thanks for Simo to point this out.

Volker
(This used to be commit 293b89dfb109d6e220ced433f025cf987aa1f500)

11 years agor15475: Ugly and disgusting patch to fix the username map problem I created by
Volker Lendecke [Sat, 6 May 2006 19:24:35 +0000 (19:24 +0000)]
r15475: Ugly and disgusting patch to fix the username map problem I created by
changing the token generation. I *hate* this code!

Jerry, you have been looking at this as well, can you double-check that I did
not screw it up?

Thanks,

Volker
(This used to be commit 2765c4ff8d44c970db3e075b0a2412662f1936c6)

11 years agor15472: Remove an unused function parameter
Volker Lendecke [Sat, 6 May 2006 15:46:53 +0000 (15:46 +0000)]
r15472: Remove an unused function parameter
(This used to be commit d2f39ae7fe79fd31846c555849655023a2d1cbc7)

11 years agor15471: Clarify error message
Volker Lendecke [Sat, 6 May 2006 13:33:14 +0000 (13:33 +0000)]
r15471: Clarify error message
(This used to be commit f21adc04f745a966dbe6ef0b4ffd9729afa3fa78)

11 years agor15467: Ensure every exit error path calls nt_status_squash.
Jeremy Allison [Fri, 5 May 2006 23:36:36 +0000 (23:36 +0000)]
r15467: Ensure every exit error path calls nt_status_squash.
Jeremy.
(This used to be commit e9b016ced636dfdfcb1c4d7d4313f89ddb5e7cbc)

11 years agor15466: Install the images for SWAT.
Deryck Hodge [Fri, 5 May 2006 21:37:13 +0000 (21:37 +0000)]
r15466: Install the images for SWAT.
And we don't install any JavaScript (hold over from a prior SWAT
svn ci trunk/ branches/SAMBA_3_0 -m
(This used to be commit 9bf07ba6cc82113b94f4d1bdac3a95262fff18c0)

11 years agor15465: Fix segfault in SWAT.
Deryck Hodge [Fri, 5 May 2006 21:28:16 +0000 (21:28 +0000)]
r15465: Fix segfault in SWAT.
Fixes bug #3702.

deryck
(This used to be commit 4ad7276cef02b28308446c0eb76ea1190ffe9b05)

11 years agor15464: fix dns build breakage on IRIX and OpenBSD
Gerald Carter [Fri, 5 May 2006 21:19:25 +0000 (21:19 +0000)]
r15464: fix dns build breakage on IRIX and OpenBSD
(This used to be commit 43f5d09a164ae111807222bdcbef949206766097)

11 years agor15463: compile fix for new DNS code for machine using Bind 4 libs (old IRIX host)
Gerald Carter [Fri, 5 May 2006 20:18:50 +0000 (20:18 +0000)]
r15463: compile fix for new DNS code for machine using Bind 4 libs (old IRIX host)
(This used to be commit b0160f893393a446927c751961d101ddbcba4db4)

11 years agor15462: replace the use of OpenLDAP's ldap_domain2hostlist() for
Gerald Carter [Fri, 5 May 2006 19:24:48 +0000 (19:24 +0000)]
r15462: replace the use of OpenLDAP's ldap_domain2hostlist() for
locating AD DC's with out own DNS SRV queries.
Testing on Linux and Solaris.
(This used to be commit cf71f88a3cdcabf99c0798ef4cf8c978397a57eb)

11 years agor15461: Free LDAP result in ads_get_attrname_by_oid().
Günther Deschner [Fri, 5 May 2006 15:54:11 +0000 (15:54 +0000)]
r15461: Free LDAP result in ads_get_attrname_by_oid().

Guenther
(This used to be commit f4af888282ff39665f186550b9ccbbf7a9128fc2)

11 years agor15460: Prefer to use the indexed objectCategory attribute (instead of
Günther Deschner [Fri, 5 May 2006 15:44:00 +0000 (15:44 +0000)]
r15460: Prefer to use the indexed objectCategory attribute (instead of
objectClass which is not indexed on AD) in LDAP queries.

Guenther
(This used to be commit 847882a98328b91a2157959c5dad0a2023223846)

11 years agor15455: Add rpccli_samr_query_dom_info2() and return the comment string in
Günther Deschner [Fri, 5 May 2006 08:26:34 +0000 (08:26 +0000)]
r15455: Add rpccli_samr_query_dom_info2() and return the comment string in
samr_query_domain_info(2) for consistency reasons.

Guenther
(This used to be commit 870495e2c8628deee0498e68cc1d93abfbc56da4)

11 years agor15454: As testing, documentation and samba4 idl indicate that there is no known
Günther Deschner [Fri, 5 May 2006 08:22:50 +0000 (08:22 +0000)]
r15454: As testing, documentation and samba4 idl indicate that there is no known
difference between samr_query_domain_info and samr_query_domain_info2,
wrap the info2 call around the info call. There have been various "could
not access LDAP when not root" bugs lurking around in
samr_query_domain_info2 anyway.

Guenther
(This used to be commit 3e181b46bea87797d654d57a6c8231cba6ff5a7b)

11 years agor15453: Process all the supported info levels in the samr_query_domain_info2
Günther Deschner [Fri, 5 May 2006 08:14:19 +0000 (08:14 +0000)]
r15453: Process all the supported info levels in the samr_query_domain_info2
call.

Guenther
(This used to be commit 9b0731b2a9b45153356f9f7fad384a02028a8bd3)

11 years agor15452: Again purely cosmetic reformat of the samr query domain info calls.
Günther Deschner [Fri, 5 May 2006 08:04:28 +0000 (08:04 +0000)]
r15452: Again purely cosmetic reformat of the samr query domain info calls.

Guenther
(This used to be commit 6ed7d7fa70e3f750f921192c0f75594d608875b7)

11 years agor15451: Rewrite AC_LIBTESTFUNC so that it works like the callers
James Peach [Fri, 5 May 2006 07:42:34 +0000 (07:42 +0000)]
r15451: Rewrite AC_LIBTESTFUNC so that it works like the callers
of it expect.
(This used to be commit 7a0c4f4997f359645a9113e19a8831bde7f9ec58)

11 years agor15450: Change profiling data macros to use stack variables rather than
James Peach [Fri, 5 May 2006 07:15:45 +0000 (07:15 +0000)]
r15450: Change profiling data macros to use stack variables rather than
globals. This catches mismatched start/end calls and removes
the need for special nested profiling calls.
(This used to be commit ee750498812190edd3ec52ca3c750258f3b8a97a)

11 years agor15449: Remove unused function get_nttime_max (which claims it
James Peach [Fri, 5 May 2006 06:16:44 +0000 (06:16 +0000)]
r15449: Remove unused function get_nttime_max (which claims it
is incorrect).
(This used to be commit e7ddcd8c33de1d2f053ac4c5fdaef5c31c280318)

11 years agor15448: New autoconf macro to test for sysconf variables.
James Peach [Fri, 5 May 2006 05:39:57 +0000 (05:39 +0000)]
r15448: New autoconf macro to test for sysconf variables.
(This used to be commit a19d4f2bb4aa94ab40e371efbad9f17e38e3bbc4)

11 years agor15447: Teach "smbd -b" to emit the sizes of a few more types that
James Peach [Fri, 5 May 2006 03:07:00 +0000 (03:07 +0000)]
r15447: Teach "smbd -b" to emit the sizes of a few more types that
might be interesting. Push the spacing across a bit so that
it all lines up nicely.
(This used to be commit efd961e4eefb774c7bdaef098e2b67062a7dffd3)

11 years agor15446: Tidy up the formatting of locking debug messages and make it more
James Peach [Fri, 5 May 2006 02:06:37 +0000 (02:06 +0000)]
r15446: Tidy up the formatting of locking debug messages and make it more
consistent. Bring oplocks withing the purview of the locking debug
channel.
(This used to be commit e817cfd7d3a42d141198122eada58b5a7ba90e9c)

11 years agor15444: Fix from Jim to ensure we do a wildcard search for SID's
Jeremy Allison [Thu, 4 May 2006 19:24:20 +0000 (19:24 +0000)]
r15444: Fix from Jim to ensure we do a wildcard search for SID's
starting with the global SAM sid, not an exact search.
Jeremy.
(This used to be commit 755c272ebf5d0f4de15178814f998d1ec5ecb718)

11 years agor15443: Purely cosmetic reformat, no functional changes.
Günther Deschner [Thu, 4 May 2006 19:20:56 +0000 (19:20 +0000)]
r15443: Purely cosmetic reformat, no functional changes.

Guenther
(This used to be commit ef40428d935831bdb19111c933d20e381647f6f8)

11 years agor15442: Add some more client rpc for the querydominfo calls (from samba4 idl).
Günther Deschner [Thu, 4 May 2006 19:01:11 +0000 (19:01 +0000)]
r15442: Add some more client rpc for the querydominfo calls (from samba4 idl).
Also return the hostname for the level 6 call (to be consistent with the
server name in level 2).

Guenther
(This used to be commit 41b72e77ae70c96de4659af6b4b6bd842dd67981)

11 years agor15441: cleanup older unused padding.
Günther Deschner [Thu, 4 May 2006 17:47:04 +0000 (17:47 +0000)]
r15441: cleanup older unused padding.

Guenther
(This used to be commit 6e225e0528604c797a953eb8d3b49a873b21584f)

11 years agor15438: Fix samrQueryDomainInfo level 5 where we returned our netbios
Günther Deschner [Thu, 4 May 2006 17:28:05 +0000 (17:28 +0000)]
r15438: Fix samrQueryDomainInfo level 5 where we returned our netbios
name eversince instead of the domain name when we are a DC.

Yes, there are applications relying on this call to be correct.

Guenther
(This used to be commit 26dd22c9af8caf3db236984e4683ba210376ca59)

11 years agor15428: Add "smbcontrol winbind onlinestatus" for debugging purpose.
Günther Deschner [Thu, 4 May 2006 12:37:13 +0000 (12:37 +0000)]
r15428: Add "smbcontrol winbind onlinestatus" for debugging purpose.

Guenther
(This used to be commit 9e15b1659c105b0be846e8f71c27b20eab961bd2)

11 years agor15425: Use dynamic buffers in the IRIX nsswithch module to prevent truncation
James Peach [Thu, 4 May 2006 00:45:31 +0000 (00:45 +0000)]
r15425: Use dynamic buffers in the IRIX nsswithch module to prevent truncation
of long group lists.
(This used to be commit d348d796c16679297e1f0304b8b2ba0f42010733)

11 years agor15424: Implement a "stacktrace" smbcontrol option using libunwind's remote
James Peach [Thu, 4 May 2006 00:35:05 +0000 (00:35 +0000)]
r15424: Implement a "stacktrace" smbcontrol option using libunwind's remote
stack tracing support. This provides an easy way for users to provide
stack traces (hopefully it will be implemented on something other than
ia64).
(This used to be commit 0b5e07e12daa98095dae27e0a6d53fe8ec3f3700)

11 years agor15423: Correct comparison logic so that libunwind can be correctly detected.
James Peach [Thu, 4 May 2006 00:18:17 +0000 (00:18 +0000)]
r15423: Correct comparison logic so that libunwind can be correctly detected.
(This used to be commit 918f56b6de6e1297a53d88050d78d87330f7ba44)

11 years agor15419: Never write the same function twice :-). In a traversal
Jeremy Allison [Wed, 3 May 2006 16:07:21 +0000 (16:07 +0000)]
r15419: Never write the same function twice :-). In a traversal
function we must copy the data before modifying.
Jeremy.
(This used to be commit ef4c70f58edf15dc93b22f2c80e15113ee2a46df)

11 years agor15417: Don't use cached credentials when changing passwords.
Günther Deschner [Wed, 3 May 2006 15:19:31 +0000 (15:19 +0000)]
r15417: Don't use cached credentials when changing passwords.

Guenther
(This used to be commit 34b29c30b2f4b5a3c40a65ca8338c87a4c16f3ff)

11 years agor15411: Small debug fixes for the PAM module.
Günther Deschner [Wed, 3 May 2006 10:19:49 +0000 (10:19 +0000)]
r15411: Small debug fixes for the PAM module.

Guenther
(This used to be commit 1856dc0f52b2a2ba2e59f1a7a77ccd32c27928c0)

11 years agor15404: Check for WRITE_THOUGH before calling lp_ fn. I hate
Jeremy Allison [Wed, 3 May 2006 03:42:56 +0000 (03:42 +0000)]
r15404: Check for WRITE_THOUGH before calling lp_ fn. I hate
extra fn calls.
Jeremy.
(This used to be commit e468e1e5c2dbee29066f0efe4141d8705def5d6f)

11 years agor15402: Fix for bug #3587. Dead entries can be left in the locking
Jeremy Allison [Wed, 3 May 2006 02:14:09 +0000 (02:14 +0000)]
r15402: Fix for bug #3587. Dead entries can be left in the locking
db. Make this db self-cleaning on first read of entry after
open, and also on smbstatus -b call. Needs more testing when
I get back from Boston but passes valgrind at first look.
Jeremy.
(This used to be commit c66531096325848d1476054df5d53ad05c2ffc83)

11 years agor15399: Fix the build, sorry, Jerry :)
Günther Deschner [Tue, 2 May 2006 20:03:30 +0000 (20:03 +0000)]
r15399: Fix the build, sorry, Jerry :)

Guenther
(This used to be commit cc800ced60e5e6bbd923a3a0b7d58650c6e14121)

11 years agor15398: Attempt to send the correct warning when a password change was attempted
Günther Deschner [Tue, 2 May 2006 19:22:39 +0000 (19:22 +0000)]
r15398: Attempt to send the correct warning when a password change was attempted
too early.

Guenther
(This used to be commit 7f64a66d25f2a4aa48c2639da8e783c1759c5dd4)

11 years agor15396: Cleanup credential caches from winbind's linked list.
Günther Deschner [Tue, 2 May 2006 19:15:14 +0000 (19:15 +0000)]
r15396: Cleanup credential caches from winbind's linked list.

Guenther
(This used to be commit 7420b095077689fee4b5c9fb76cdb6533be1d465)

11 years agor15393: remove extra call to fallback user creation on member servers; it's handled...
Gerald Carter [Tue, 2 May 2006 12:13:23 +0000 (12:13 +0000)]
r15393: remove extra call to fallback user creation on member servers; it's handled by the smb_getpwnam() call deeper in
(This used to be commit 7433dba78bda27cd6366a49b0efc10a387439ccd)

11 years agor15392: In most cases, this mapping is more appropriate. (I know, it is still a
Günther Deschner [Tue, 2 May 2006 11:54:18 +0000 (11:54 +0000)]
r15392: In most cases, this mapping is more appropriate. (I know, it is still a
mess, but there is no way the get NTSTATUS from the edata yet).

Guenther
(This used to be commit be2bd3945c057a4ad72251f809cffbe4694a7e3d)

11 years agor15386: Missed some functions in my last commit.
Deryck Hodge [Mon, 1 May 2006 22:53:29 +0000 (22:53 +0000)]
r15386: Missed some functions in my last commit.

deryck
(This used to be commit fdb5be797acce071b4c0de2c63fd54f906e340c6)