samba.git
16 years agor15320: default "passdb expand explicit" to no
Volker Lendecke [Sat, 29 Apr 2006 12:19:57 +0000 (12:19 +0000)]
r15320: default "passdb expand explicit" to no
(This used to be commit 88b5a21d63b18af56b4fe7e5c353eae3ff7d4752)

16 years agor15311: look at the NT password (not lanman one) when determining if smbpasswd -e...
Gerald Carter [Fri, 28 Apr 2006 15:37:15 +0000 (15:37 +0000)]
r15311: look at the NT password (not lanman one) when determining if smbpasswd -e should probably for a password
(This used to be commit 3522b53aecb5293747b66250279417f9edf876f1)

16 years agor15310: only store lanman passwords on a change if 'lanman auth = yes'
Gerald Carter [Fri, 28 Apr 2006 15:36:23 +0000 (15:36 +0000)]
r15310: only store lanman passwords on a change if 'lanman auth = yes'
(This used to be commit b6904e0950a5e70ebb2ea8aa9e9afc220adbe211)

16 years agor15309: normalize printing keys when deleting
Gerald Carter [Fri, 28 Apr 2006 15:35:42 +0000 (15:35 +0000)]
r15309: normalize printing keys when deleting
(This used to be commit 037f9f831e001a12261419e37c725558dd717af9)

16 years agor15308: Fix the build, sorry.
Günther Deschner [Fri, 28 Apr 2006 15:08:52 +0000 (15:08 +0000)]
r15308: Fix the build, sorry.

Guenther
(This used to be commit 6161e525de55769ed5e45d505f26f6cd9d6555e5)

16 years agor15307: Ignore builtin groups we're a member of on the DC as those memberships
Günther Deschner [Fri, 28 Apr 2006 14:51:09 +0000 (14:51 +0000)]
r15307: Ignore builtin groups we're a member of on the DC as those memberships
are not valid locally.

Guenther
(This used to be commit 177da7754b53348d8754d46098dbd11300234bb5)

16 years agor15306: Be consistent between rpc and ads winbind backend: let the ads backend
Günther Deschner [Fri, 28 Apr 2006 14:48:22 +0000 (14:48 +0000)]
r15306: Be consistent between rpc and ads winbind backend: let the ads backend
query the samlogon cache first as well.

Guenther
(This used to be commit aa52b11dd450ca3ec1f156e17822b1c4971ef915)

16 years agor15305: Let winbind search by sid directly (or in windows terms: "bind to a
Günther Deschner [Fri, 28 Apr 2006 14:44:43 +0000 (14:44 +0000)]
r15305: Let winbind search by sid directly (or in windows terms: "bind to a
sid"); works in all AD versions I tested. Also add "net ads sid" search
tool.

Guenther
(This used to be commit 5557ada6943b817d28a5471c613c7291febe2ad5)

16 years agor15299: Fix import of Python modules. Fixes Bug #3567.
Deryck Hodge [Thu, 27 Apr 2006 20:52:04 +0000 (20:52 +0000)]
r15299: Fix import of Python modules.  Fixes Bug #3567.
The REGVAL_CTR part is taken from Daniel Jarboe's
patch he filed with the bug report.

deryck
(This used to be commit 7ca24b996628707b7e8a05041d173f046f428413)

16 years agor15293: Don't ever set O_SYNC on open unless "strict sync = yes".
Jeremy Allison [Thu, 27 Apr 2006 13:42:18 +0000 (13:42 +0000)]
r15293: Don't ever set O_SYNC on open unless "strict sync = yes".
This could be the cause of the perf. problem reported
between 3.0.14a and 3.0.2x. Lufthansa has *wireless*
on their flights to the USA now...  (I'm in heaven ! :-).
Jeremy.
(This used to be commit dbc03125f2643f8ecff8e901cb23fa6408cce011)

16 years agor15289: Put references to $PICFLAGS in quotes. Fixes #3725.
Tim Potter [Wed, 26 Apr 2006 19:15:11 +0000 (19:15 +0000)]
r15289: Put references to $PICFLAGS in quotes.  Fixes #3725.
(This used to be commit 2aad5e915c03ec932feb1bc9e1dae938fa3011a2)

16 years agor15285: Fix the build.
Paul Green [Wed, 26 Apr 2006 16:18:02 +0000 (16:18 +0000)]
r15285: Fix the build.
(This used to be commit 2270a5196db071bbf15aed92637a24f81d179cd5)

16 years agor15283: Oh yeah. The build farm doesn't do much with head. OK, here is the patch...
Paul Green [Wed, 26 Apr 2006 15:41:25 +0000 (15:41 +0000)]
r15283: Oh yeah. The build farm doesn't do much with head.  OK, here is the patch to SAMBA_3_0 to declare prototypes for the initialization functions.  These are the same changes I just made to head.  --paulg
(This used to be commit 17774387ad879b6a72dd1cf406326318add31b04)

16 years agor15269: Fix incorrect boolean in assert to make POSIX lock tests
Jeremy Allison [Wed, 26 Apr 2006 11:02:46 +0000 (11:02 +0000)]
r15269: Fix incorrect boolean in assert to make POSIX lock tests
pass with CIFSFS.
Jeremy.
(This used to be commit 89b604285ebe77b7cc2e0d5593117c0c5dc5ed1c)

16 years agor15266: Fix bug 3720. I wonder why -O1 compiles did not catch this...
Volker Lendecke [Wed, 26 Apr 2006 09:43:39 +0000 (09:43 +0000)]
r15266: Fix bug 3720. I wonder why -O1 compiles did not catch this...

Thanks to Jason Mader for reporting this.

Volker
(This used to be commit 3e616c3272ba76a2d135f7c51ceb44461ad165ad)

16 years agor15255: Add return statement after abort to placate fussy compilers. Closes #3721.
Tim Potter [Tue, 25 Apr 2006 21:36:35 +0000 (21:36 +0000)]
r15255: Add return statement after abort to placate fussy compilers.  Closes #3721.
(This used to be commit ab5a55ec8b27146fccba97f320d649bb19bc6f11)

16 years agor15251: Adding PreWin2kAccess builtin sid.
Günther Deschner [Tue, 25 Apr 2006 20:14:46 +0000 (20:14 +0000)]
r15251: Adding PreWin2kAccess builtin sid.

Guenther
(This used to be commit 4330d1b74cba14501c2864105b2fae53ccf9475f)

16 years agor15250: dump some more sids.
Günther Deschner [Tue, 25 Apr 2006 20:13:05 +0000 (20:13 +0000)]
r15250: dump some more sids.

Guenther
(This used to be commit 2922c7f5704e3cfcc80dc648bb3d6d9aa80aaf37)

16 years agor15244: Fix debug typo.
Günther Deschner [Tue, 25 Apr 2006 13:50:35 +0000 (13:50 +0000)]
r15244: Fix debug typo.

Guenther
(This used to be commit 01787bd45b4186d3e997f750b08c50df9d3cbbe1)

16 years agor15243: Sorry for the breakage:
Günther Deschner [Tue, 25 Apr 2006 12:53:38 +0000 (12:53 +0000)]
r15243: Sorry for the breakage:
* Fix the build without kerberos headers
* Fix memleak in the krb5_address handling

Guenther
(This used to be commit 10e42117559d4bc6a34e41a94914bf6c65c3477f)

16 years agor15240: Correctly disallow unauthorized access when logging on with the
Günther Deschner [Tue, 25 Apr 2006 12:24:25 +0000 (12:24 +0000)]
r15240: Correctly disallow unauthorized access when logging on with the
kerberized pam_winbind and workstation restrictions are in effect.

The krb5 AS-REQ needs to add the host netbios-name in the address-list.

We don't get the clear NT_STATUS_INVALID_WORKSTATION code back yet from
the edata of the KRB_ERROR but the login at least fails when the local
machine is not in the workstation list on the DC.

Guenther
(This used to be commit 8b2ba11508e2730aba074d7c095291fac2a62176)

16 years agor15229: Save useless roundtrips in pam_auth (fallback to samlogon) when we know
Günther Deschner [Tue, 25 Apr 2006 08:42:34 +0000 (08:42 +0000)]
r15229: Save useless roundtrips in pam_auth (fallback to samlogon) when we know
that the DC is not available.

Guenther
(This used to be commit 77407c021997db1b2a86ca26a5d125fa6b782949)

16 years agor15228: Fix -n winbind option which has become meaningless with the persistent
Günther Deschner [Tue, 25 Apr 2006 08:24:50 +0000 (08:24 +0000)]
r15228: Fix -n winbind option which has become meaningless with the persistent
cache.

Guenther
(This used to be commit e85558f4a457609f3661446dad8134e80f10bbe6)

16 years agor15227: Fix a valgrind error. We are marshalling here, not unmarshalling.
Volker Lendecke [Tue, 25 Apr 2006 08:03:34 +0000 (08:03 +0000)]
r15227: Fix a valgrind error. We are marshalling here, not unmarshalling.

Jeremy, can you check this? This was part of your -O6 on 64bit sweep.

Volker
(This used to be commit 4fa5dbcc8dd1f150664e1241b22e3f048d816001)

16 years agor15218: Update Makefile.in to avoid building libmsrpc.so on systems that do not suppo...
Paul Green [Mon, 24 Apr 2006 17:12:22 +0000 (17:12 +0000)]
r15218: Update Makefile.in to avoid building libmsrpc.so on systems that do not support shared libraries.
(This used to be commit a1c12d7949f9110530526cc7133424e842cdcc71)

16 years agor15216: Fix the build for machines without krb5. Oops, sorry.
Jeremy Allison [Mon, 24 Apr 2006 16:29:55 +0000 (16:29 +0000)]
r15216: Fix the build for machines without krb5. Oops, sorry.
Jeremy.
(This used to be commit bea87e2df45c67cc75d91bd3ed1acc4c64a1c8ea)

16 years agor15210: Add wrapper functions smb_krb5_parse_name, smb_krb5_unparse_name,
Jeremy Allison [Mon, 24 Apr 2006 15:57:54 +0000 (15:57 +0000)]
r15210: Add wrapper functions smb_krb5_parse_name, smb_krb5_unparse_name,
smb_krb5_parse_name_norealm_conv that pull/push from unix charset
to utf8 (which krb5 uses on the wire). This should fix issues when
the unix charset is not compatible with or set to utf8.
Jeremy.
(This used to be commit 37ab42afbc9a79cf5b04ce6a1bf4060e9c961199)

16 years agor15198: Mention the auditing tool in "net rpc help".
Günther Deschner [Mon, 24 Apr 2006 12:01:14 +0000 (12:01 +0000)]
r15198: Mention the auditing tool in "net rpc help".

Guenther
(This used to be commit e55e1e1e96e1a1e6d2bcc5897a44828ddc2c9f3b)

16 years agor15196: Update a comment that I found confusing (I confuse easily).
Paul Green [Mon, 24 Apr 2006 10:45:06 +0000 (10:45 +0000)]
r15196: Update a comment that I found confusing (I confuse easily).
(This used to be commit eb53f01863f8f9d2980d9c2c8d27899dd39e5fa2)

16 years agor15194: We need to be able to join as PDC as well. Thanks to Andrew Bartlett.
Günther Deschner [Mon, 24 Apr 2006 10:09:45 +0000 (10:09 +0000)]
r15194: We need to be able to join as PDC as well. Thanks to Andrew Bartlett.

Guenther
(This used to be commit ba81b508caa4ab21a04d142f3621e43a55e859cf)

16 years agor15180: Use tdb_lock_bystring_with_timeout().
Lars Müller [Sun, 23 Apr 2006 15:39:32 +0000 (15:39 +0000)]
r15180: Use tdb_lock_bystring_with_timeout().
(This used to be commit 1ff6ae68b66ec3c78abbadd1fb9d50e50fc247dd)

16 years agor15175: Try to get Stratus VOS back to build. Thanks, Paul.
Volker Lendecke [Sun, 23 Apr 2006 11:16:01 +0000 (11:16 +0000)]
r15175: Try to get Stratus VOS back to build. Thanks, Paul.

Volker
(This used to be commit 74511aed221d7f9856fed7532f24c789c49c8175)

16 years agor15174: Check in Ronan Waide's wbinfo -i. Thanks :-)
Volker Lendecke [Sun, 23 Apr 2006 11:11:27 +0000 (11:11 +0000)]
r15174: Check in Ronan Waide's wbinfo -i. Thanks :-)

Volker
(This used to be commit c4cdb8086a3aa8a2e1f724e70616143adfea6e87)

16 years agor15173: Fix a non-critical memleak
Volker Lendecke [Sun, 23 Apr 2006 10:59:44 +0000 (10:59 +0000)]
r15173: Fix a non-critical memleak
(This used to be commit bb8c69162f9228343e0b05812e0e5a9ca4eb56bf)

16 years agor15170: don't check for ccache
Gerald Carter [Sat, 22 Apr 2006 22:43:24 +0000 (22:43 +0000)]
r15170: don't check for ccache
(This used to be commit e6a1106820ef532dcf2e50920b82f4536140dcad)

16 years agor15169: openldap2-devel is a suse package (not on RHEL)
Gerald Carter [Sat, 22 Apr 2006 22:42:32 +0000 (22:42 +0000)]
r15169: openldap2-devel is a suse package (not on RHEL)
(This used to be commit b8160fdf8796880412f63a5315ed871eae9ccbf0)

16 years agor15168: last minute spec file fix for some change with the using_samba install path
Gerald Carter [Sat, 22 Apr 2006 22:39:46 +0000 (22:39 +0000)]
r15168: last minute spec file fix for some change with the using_samba install path
(This used to be commit 81f3fa013801d9cfa22bd1abb329ea887f84a5bc)

16 years agor15165: updates for RH 9 packages (merged from RHEL fixes)
Gerald Carter [Sat, 22 Apr 2006 21:43:31 +0000 (21:43 +0000)]
r15165: updates for RH 9 packages (merged from RHEL fixes)
(This used to be commit 220cf41bc10029ec4bba70df0da27c0d3ce60f54)

16 years agor15163: packaging updates for RHEL/Fedora and break out 'pre' tag to the RPM release...
Gerald Carter [Sat, 22 Apr 2006 17:28:01 +0000 (17:28 +0000)]
r15163: packaging updates for RHEL/Fedora and break out 'pre' tag to the RPM release number
(This used to be commit e3763272c39dc85e7feca4fc5646225b4b266fbc)

16 years agor15162: Patch for bug #3668. Windows has a bug with LARGE_READX
Jeremy Allison [Sat, 22 Apr 2006 02:33:11 +0000 (02:33 +0000)]
r15162: Patch for bug #3668. Windows has a bug with LARGE_READX
where if you ask for exactly 64k bytes it returns 0.
Jeremy.
(This used to be commit dcef65acb5bc08ea4b61ef490a518b7e668ff2ee)

16 years agor15160: Fix from William Jojo I thought had already been added (but
Jeremy Allison [Sat, 22 Apr 2006 01:59:23 +0000 (01:59 +0000)]
r15160: Fix from William Jojo I thought had already been added (but
hadn't).
Jeremy.
(This used to be commit dcbece8254e5de861d04b691d733616fc25cd585)

16 years agor15154: bump version to 3.0.23pre2
Gerald Carter [Thu, 20 Apr 2006 22:15:17 +0000 (22:15 +0000)]
r15154: bump version to 3.0.23pre2
(This used to be commit d6940c09cc9b9ac8bd4cba95ca382fa63c19748b)

16 years agor15152: Fix a case when target is offline. Jerry, this needs to be in 3.0.23pre1
Alexander Bokovoy [Thu, 20 Apr 2006 14:14:12 +0000 (14:14 +0000)]
r15152: Fix a case when target is offline. Jerry, this needs to be in 3.0.23pre1
(This used to be commit f068862e56861d74021d72726248cb738a2ff0fe)

16 years agor15150: Adding winbind debug class to the main daemon.
Günther Deschner [Thu, 20 Apr 2006 13:51:43 +0000 (13:51 +0000)]
r15150: Adding winbind debug class to the main daemon.

Guenther
(This used to be commit 37d03695c6fb4aa02522c1739b9783c5dc7bf735)

16 years agor15141: Fix for #3592 inspired by Justin Best <justinb@pdxmission.org>.
Jeremy Allison [Thu, 20 Apr 2006 00:47:46 +0000 (00:47 +0000)]
r15141: Fix for #3592 inspired by Justin Best <justinb@pdxmission.org>.
Ignore a file in a tar output if the first read fails. Also
cope with <2GB read fail.
Jeremy.
(This used to be commit 1b73e699e11c6e26e9a9123e74190eebd170fc05)

16 years agor15138: Teach Samba the difference between exclusive and batch oplocks.
Jeremy Allison [Wed, 19 Apr 2006 18:48:14 +0000 (18:48 +0000)]
r15138: Teach Samba the difference between exclusive and batch oplocks.
Pass Samba4 oplock test (with kernel oplocks off).
Jeremy.
(This used to be commit 3c260bcce2de76d724279e07dca61eadddfb8782)

16 years agor15137: Refuse to join if our netbios name is longer than 15 chars. I think this is
Volker Lendecke [Wed, 19 Apr 2006 15:43:48 +0000 (15:43 +0000)]
r15137: Refuse to join if our netbios name is longer than 15 chars. I think this is
sufficient to fix bug #3659.

Volker
(This used to be commit 0ef5e4372c45a60d66a902a6dbca58ae98529358)

16 years agor15136: Fix join consistency check
Volker Lendecke [Wed, 19 Apr 2006 15:38:43 +0000 (15:38 +0000)]
r15136: Fix join consistency check
(This used to be commit a6e88785e7116c1a88e1bfdfa2afadecd501bfb0)

16 years agor15133: in_server is not used anywhere
Volker Lendecke [Wed, 19 Apr 2006 14:11:51 +0000 (14:11 +0000)]
r15133: in_server is not used anywhere
(This used to be commit c981bc7f31483e7821b9654eb30d665283aa07d5)

16 years agor15132: Fix some shadowed variable warnings
Volker Lendecke [Wed, 19 Apr 2006 13:14:14 +0000 (13:14 +0000)]
r15132: Fix some shadowed variable warnings
(This used to be commit 97d2c20b0b37ac07b6e37e9614ff41ab7e131c98)

16 years agor15129: Separate out mechanism and policy for NTLMSSP auth/sign/seal.
Jeremy Allison [Tue, 18 Apr 2006 18:00:57 +0000 (18:00 +0000)]
r15129: Separate out mechanism and policy for NTLMSSP auth/sign/seal.
With this change (and setting lanman auth = no in smb.conf)
we have *identical* NTLMSSP flags to W2K3 in SPNEGO auth.
Jeremy
(This used to be commit 93ca3eee55297eb7fdd38fca38103ce129987e2a)

16 years agor15123: Don't even try to join with an inproper configuration.
Günther Deschner [Tue, 18 Apr 2006 13:22:14 +0000 (13:22 +0000)]
r15123: Don't even try to join with an inproper configuration.

Guenther
(This used to be commit 22b687589785051eca16a868e3475f066b647ea7)

16 years agor15119: Initialize our global sam sid first, quite a lot of the other initialization
Volker Lendecke [Tue, 18 Apr 2006 09:02:58 +0000 (09:02 +0000)]
r15119: Initialize our global sam sid first, quite a lot of the other initialization
routines further down depend on it.

Fix bug 3696.

Volker
(This used to be commit 6c65cccc83aa7b726e23684f979f1488bed3f751)

16 years agor15116: Allow the user to set winbind nss timeouts in seconds on IRIX. Don't
James Peach [Tue, 18 Apr 2006 06:26:23 +0000 (06:26 +0000)]
r15116: Allow the user to set winbind nss timeouts in seconds on IRIX. Don't
convert the default timeout to milliseconds twice.
(This used to be commit 853ebd6e84cf52a309945f39cdf188ca346da8eb)

16 years agor15115: Fix error return on sessionsetup. Ensure no
Jeremy Allison [Tue, 18 Apr 2006 03:45:09 +0000 (03:45 +0000)]
r15115: Fix error return on sessionsetup. Ensure no
data blob is added if the logon call failed.
Jeremy.
(This used to be commit 71d0191c313e2106ae2bdef3119b3ff6e591ee1b)

16 years agor15112: Move strict locking default to auto. Fix up the error
Jeremy Allison [Mon, 17 Apr 2006 22:32:38 +0000 (22:32 +0000)]
r15112: Move strict locking default to auto. Fix up the error
return for one of the Samba4 torture tests.
Jeremy.
(This used to be commit 9db6617756ff155eb7549c3c622a9920189e577d)

16 years agor15107: 64 bit fixes. size_t on a 64-bit box is not uint32.
Jeremy Allison [Mon, 17 Apr 2006 17:16:46 +0000 (17:16 +0000)]
r15107: 64 bit fixes. size_t on a 64-bit box is not uint32.
Jeremy.
(This used to be commit 634e0dc3c73968da8f1f50186ca15f8873f380ce)

16 years agor15104: Implement Samba4's tdb_name().
Volker Lendecke [Mon, 17 Apr 2006 13:06:57 +0000 (13:06 +0000)]
r15104: Implement Samba4's tdb_name().

Volker
(This used to be commit d52002c1c9d28e637ca4d1553e800b0b97790f36)

16 years agor15103: Okay, looking closer: Samba4 tdb not exporting u32 is a bug in samba4's
Volker Lendecke [Mon, 17 Apr 2006 12:27:35 +0000 (12:27 +0000)]
r15103: Okay, looking closer: Samba4 tdb not exporting u32 is a bug in samba4's
tdb. tdb_open_ex needs it. Can someone from samba4 tell me how this should be
handled?

Thanks,

Volker
(This used to be commit 0a2f1ed5e9012e07ef158666b68994d0961768b6)

16 years agor15102: u32 is a tdb-only thing that's not exported by samba4 tdb. Replace by uint32.
Volker Lendecke [Mon, 17 Apr 2006 12:23:38 +0000 (12:23 +0000)]
r15102: u32 is a tdb-only thing that's not exported by samba4 tdb. Replace by uint32.

Volker
(This used to be commit 0a1665a1b78d063840e42e85229ace5a751e3985)

16 years agor15101: Little step towards getting Samba4 tdb into 3: tdb_lock_bystring does not
Volker Lendecke [Mon, 17 Apr 2006 11:49:06 +0000 (11:49 +0000)]
r15101: Little step towards getting Samba4 tdb into 3: tdb_lock_bystring does not
have the timeout argument in Samba4. Add a new routine
tdb_lock_bystring_with_timeout.

Volker
(This used to be commit b9c6e3f55602fa505859a4b2cd137b74105d685f)

16 years agor15098: Make smbclient -L use RPC to list shares, fall back to RAP. This should list
Volker Lendecke [Sun, 16 Apr 2006 11:47:26 +0000 (11:47 +0000)]
r15098: Make smbclient -L use RPC to list shares, fall back to RAP. This should list
long share names.

Volker
(This used to be commit d3d388180dacb7b9db5d122bc3f2ce1045434f53)

16 years agor15094: Replace ; by # where we have a comment and remove superfluous spaces at
Lars Müller [Sat, 15 Apr 2006 21:24:32 +0000 (21:24 +0000)]
r15094: Replace ; by # where we have a comment and remove superfluous spaces at
the end of lines.
(This used to be commit 27044d23ffbb2de0405e85b8ae184d12aa1e1f32)

16 years agor15093: Align to the last winbind changes.
Lars Müller [Sat, 15 Apr 2006 13:45:27 +0000 (13:45 +0000)]
r15093: Align to the last winbind changes.
(This used to be commit 74fa3a2554b769382b2b3b43adfbc0cfbca3cd10)

16 years agor15088: Remove all time() and gettimeofday() calls out of the mainline
Jeremy Allison [Sat, 15 Apr 2006 04:07:10 +0000 (04:07 +0000)]
r15088: Remove all time() and gettimeofday() calls out of the mainline
packet processing code. Only do these when needed (ie. in the
idle timeout code). We drop an unneccessary global here too.
Jeremy.
(This used to be commit 8272a5ab0605fcf95527143c4f909aa1008e5b94)

16 years agor15086: Get defensive about creating user accounts when winbindd
Gerald Carter [Fri, 14 Apr 2006 19:36:36 +0000 (19:36 +0000)]
r15086: Get defensive about creating user accounts when winbindd
fails (but is present).
(This used to be commit 77fb19c45dcb07f5b675831979fbd74a99e30638)

16 years agor15084: Try and squeeze more out of the non-read/write code path.
Jeremy Allison [Fri, 14 Apr 2006 03:55:42 +0000 (03:55 +0000)]
r15084: Try and squeeze more out of the non-read/write code path.
Jeremy.
(This used to be commit 23dcff4d50d1d35b7ddee0d0cb79c16a312f179c)

16 years agor15083: Using talloc with destructors is nice and all, but in this
Jeremy Allison [Thu, 13 Apr 2006 22:22:54 +0000 (22:22 +0000)]
r15083: Using talloc with destructors is nice and all, but in this
case it's in a performace critical path and it *hurts* us.
Go back to plain malloc/free with an explicit destructor
call.
Jeremy.
(This used to be commit 1c99aed563c29e1b3d70939878af747a0660bfec)

16 years agor15080: As discussed with Jerry, remove the CAP_LIBS again (we don't need that
Günther Deschner [Thu, 13 Apr 2006 15:53:51 +0000 (15:53 +0000)]
r15080: As discussed with Jerry, remove the CAP_LIBS again (we don't need that
handling anymore when we remove $(LIBS) from pam_winbind again.

Also make sure to build our own copy of iniparser with -fPIC.

Guenther
(This used to be commit e32c4f6f6e090ca5babe9f131bbcb9babedcec05)

16 years agor15074: Remove -lcap from pam_winbind (not needed)
Gerald Carter [Thu, 13 Apr 2006 12:06:01 +0000 (12:06 +0000)]
r15074: Remove -lcap from pam_winbind (not needed)
Temporary linking fix for --with-included-iniparser
(gd will do a proper fix later).
(This used to be commit 7d5adcf3a7237d130efea6cc9f6e5d28e65e2e51)

16 years agor15072: Last bit of 32/64 bit portabilities fixes for winbind
Gerald Carter [Thu, 13 Apr 2006 12:03:12 +0000 (12:03 +0000)]
r15072: Last bit of 32/64 bit portabilities fixes for winbind
clients and aservers.  Strange compiler-fu on 64-bit
SLES9 says sizeof(time_t) == 4 but the memory alignment
is on 8 bytes.  Change time_t to uint32 to fix alignment.
Remove 'char **gr_mem' from struct winbindd_gr since
it was not being used.
(This used to be commit b68e66d5c4f7348e674b8a009656ebfbbc06e288)

16 years agor15068: Fix a shadowed variable warning
Volker Lendecke [Thu, 13 Apr 2006 10:14:07 +0000 (10:14 +0000)]
r15068: Fix a shadowed variable warning
(This used to be commit 066f69fe88b360b856f3dc49089f8c21b721cce9)

16 years agor15060: The brlock code gets called a lot. Ensure we keep the
Jeremy Allison [Wed, 12 Apr 2006 23:00:58 +0000 (23:00 +0000)]
r15060: The brlock code gets called a lot. Ensure we keep the
key around while we're using it - saves many calls to
locking_key() (now deleted).
Jeremy.
(This used to be commit 2f8b527dcf4a36fbb933ce79c720c0425de76b4a)

16 years agor15058: Add sample pam_winbind.conf file.
Günther Deschner [Wed, 12 Apr 2006 17:36:13 +0000 (17:36 +0000)]
r15058: Add sample pam_winbind.conf file.

Guenther
(This used to be commit 01e46b8c6e386e5009288db488e908dc6e75c805)

16 years agor15053: fix portabilities issues between 32-bit winbind clients and a 64-bit winbindd...
Gerald Carter [Wed, 12 Apr 2006 14:10:39 +0000 (14:10 +0000)]
r15053: fix portabilities issues between 32-bit winbind clients and a 64-bit winbindd server
(This used to be commit a95d11345e76948b147bbc1f29a05c978d99a47a)

16 years agor15047: Add support for using libunwind to generate a backtrace. This is
James Peach [Wed, 12 Apr 2006 00:07:40 +0000 (00:07 +0000)]
r15047: Add support for using libunwind to generate a backtrace. This is
primarily intended for ia64 systems where libunwind knows more about
the different ways of walking the stack that just about anything else.
(This used to be commit 256a19d722f360dac3c8e83f5bfac453fa70db96)

16 years agor15046: Fix bug #3490 reported by Jason Mader. Do not continue to check for LDAP
James Peach [Tue, 11 Apr 2006 23:32:04 +0000 (23:32 +0000)]
r15046: Fix bug #3490 reported by Jason Mader. Do not continue to check for LDAP
and AD requirements if --without-ldap and --without-ads have been given
to configure.
(This used to be commit 1d5e4830d33906da433655ecaf87300ed874b06f)

16 years agor15044: Fix the build. (void returning non-void).
Günther Deschner [Tue, 11 Apr 2006 17:00:08 +0000 (17:00 +0000)]
r15044: Fix the build. (void returning non-void).

Guenther
(This used to be commit 3ff278b852b4085461127bc7ccb2c5dba81fb3c8)

16 years agor15043: Only build our copy of iniparser when the system doesn't have one.
Günther Deschner [Tue, 11 Apr 2006 16:57:16 +0000 (16:57 +0000)]
r15043: Only build our copy of iniparser when the system doesn't have one.

Guenther
(This used to be commit 5ae22cf46b1077b8892a2941a2891fe7412f1b9f)

16 years agor15041: Adding rpc client calls to manipulate auditing policies on remote CIFS
Günther Deschner [Tue, 11 Apr 2006 15:47:24 +0000 (15:47 +0000)]
r15041: Adding rpc client calls to manipulate auditing policies on remote CIFS
servers. Also add a new "net rpc audit" tool. The lsa query infolevels
were taken from samb4 IDL, the lsa policy flags and categories are
partly documented on msdn. I need to cleanup the double
lsa_query_info_policy{2}{_new} calls next.

Guenther
(This used to be commit 0fed66926f4b72444abfc8ffb8c46cca8d0600aa)

16 years agor15040: Stripping the parametric options in pam_winbind and use
Günther Deschner [Tue, 11 Apr 2006 15:18:46 +0000 (15:18 +0000)]
r15040: Stripping the parametric options in pam_winbind and use
/etc/security/pam_winbind.conf as config file for the PAM module by
default.

Guenther
(This used to be commit 41b79ee80c7b0f4836ded51d42c7dc91cba75ccd)

16 years agor15039: Fix an uninitialized variable. I _think_ this should default to
Volker Lendecke [Tue, 11 Apr 2006 15:11:27 +0000 (15:11 +0000)]
r15039: Fix an uninitialized variable. I _think_ this should default to
PAM_SUCCESS. Günther, could you take a look?

Thanks,

Volker
(This used to be commit fc6effcd9c2bb2d15b7e8fba85cc3193d2d7ce1f)

16 years agor15038: Replace all code in pam_winbind that relied on access to samba
Günther Deschner [Tue, 11 Apr 2006 14:40:53 +0000 (14:40 +0000)]
r15038: Replace all code in pam_winbind that relied on access to samba
internals, mostly with the code that was in pam_winbind before.

Also switch from using loadparm to use iniParser to read the new
pam_winbind options from a configuration file. That still uses the old
(parametric) option names which will be replaced next (as iniParser does
not support parametric options).

Guenther
(This used to be commit 6f668ce67318f17bba79cd98b5d169cd19eafcd4)

16 years agor15037: Adding iniParser (http://ndevilla.free.fr/iniparser/), a free inifile
Günther Deschner [Tue, 11 Apr 2006 14:34:40 +0000 (14:34 +0000)]
r15037: Adding iniParser (ndevilla.free.fr/iniparser/), a free inifile
parsing library under the MIT licence.

This is required to have a configuration ini-file for pam_winbind
without using loadparm in the next step.

Guenther
(This used to be commit 6658e0a9886ee5a361361bc9b26c136ec91aea72)

16 years agor15035: It seems that many preprocessors do not like comments in macro args..
Volker Lendecke [Tue, 11 Apr 2006 06:39:51 +0000 (06:39 +0000)]
r15035: It seems that many preprocessors do not like comments in macro args..
(This used to be commit efc833dcba052e52c46eeba71a1ebe248be9cb05)

16 years agor15034: Attempt to make the build farm happy
Volker Lendecke [Tue, 11 Apr 2006 06:35:36 +0000 (06:35 +0000)]
r15034: Attempt to make the build farm happy
(This used to be commit 8b3e87184a3cc831fe0314c3b26b6d753cf74e4c)

16 years agor15030: On a performace hunt... Remove as many extraneous
Jeremy Allison [Tue, 11 Apr 2006 01:43:13 +0000 (01:43 +0000)]
r15030: On a performace hunt... Remove as many extraneous
memset's as possible.
Jeremy.
(This used to be commit 1217ed392b75aa8bfefa9c3f1ec5fa3bba841ee0)

16 years agor15028: Fix logic error checking valid args to POSIX lock
Jeremy Allison [Mon, 10 Apr 2006 23:32:05 +0000 (23:32 +0000)]
r15028: Fix logic error checking valid args to POSIX lock
call.
Jeremy.
(This used to be commit 44b0d856ae867d1c407507dcf7940dd39f4f963a)

16 years agor15026: Fix warning until POSIX locking finished.
Jeremy Allison [Mon, 10 Apr 2006 23:29:47 +0000 (23:29 +0000)]
r15026: Fix warning until POSIX locking finished.
Jeremy.
(This used to be commit 15f39a4c720e9645f941742310b6c6d7d7fc96d5)

16 years agor15025: Fix exit_server_cleanly call.
Jeremy Allison [Mon, 10 Apr 2006 22:57:12 +0000 (22:57 +0000)]
r15025: Fix exit_server_cleanly call.
Jeremy.
(This used to be commit a64976b94482ef4397d5b791a0e266edba5a3d0c)

16 years agor15022: Fix core dumps on normal server exit.
Jeremy Allison [Mon, 10 Apr 2006 22:47:09 +0000 (22:47 +0000)]
r15022: Fix core dumps on normal server exit.
Jeremy.
(This used to be commit 13c3abf03187f84874b5754b54de5d3fe2dea188)

16 years agor15020: Fix issue with samba4 netbench torture tester,
Jeremy Allison [Mon, 10 Apr 2006 18:44:27 +0000 (18:44 +0000)]
r15020: Fix issue with samba4 netbench torture tester,
it sends break replies to "break to none from level2"
requests and it shouldn't. Just don't log a debug
level zero message.
Jeremy.
(This used to be commit dc6a13da33a031d0c2374b692737dbe9215f0f74)

16 years agor15018: Merge Volker's ipc/trans2/nttrans changes over
Jeremy Allison [Mon, 10 Apr 2006 15:33:04 +0000 (15:33 +0000)]
r15018: Merge Volker's ipc/trans2/nttrans changes over
into 3.0. Also merge the new POSIX lock code - this
is not enabled unless -DDEVELOPER is defined.
This doesn't yet map onto underlying system POSIX
locks. Updates vfs to allow lock queries.
Jeremy.
(This used to be commit 08e52ead03304ff04229e1bfe544ff40e2564fc7)

16 years agor15012: Fix bug #2715. Fix suggested by ISHIKAWA Tomonori <toishika@fsi.co.jp>
Jeremy Allison [Sun, 9 Apr 2006 19:39:38 +0000 (19:39 +0000)]
r15012: Fix bug #2715. Fix suggested by ISHIKAWA Tomonori <toishika@fsi.co.jp>
No need to null terminate early, pull_ascii_fstring will do this.
Jeremy.
(This used to be commit b1bbe568313001f4b4e49382742e4b819c0a2b03)

16 years agor15011: Fix bug # 2413. net rpc info can't reliably work anonymously anymore.
Volker Lendecke [Sun, 9 Apr 2006 17:01:59 +0000 (17:01 +0000)]
r15011: Fix bug # 2413. net rpc info can't reliably work anonymously anymore.

Volker
(This used to be commit ba41c62b8b4d0c791035d63fb59496c0f655887f)

16 years agor15009: Add a check for NULL
Volker Lendecke [Sun, 9 Apr 2006 10:17:43 +0000 (10:17 +0000)]
r15009: Add a check for NULL
(This used to be commit 0a7d4f1ab109f57f5b5f4c1e83ad346b13b50778)

16 years agor15007: fixed usage of cli_list() in smbwrapper so it compiles. This doesn't get...
Andrew Tridgell [Sun, 9 Apr 2006 08:51:35 +0000 (08:51 +0000)]
r15007: fixed usage of cli_list() in smbwrapper so it compiles. This doesn't get smbwrapper really working again, but at least it will help Timur Bakeyev in his question to make it work
(This used to be commit e73ee08c84801f315f556d204007f053fda56dbf)

16 years agor15005: Fix printf args to remove warnings.
Jeremy Allison [Sun, 9 Apr 2006 01:20:26 +0000 (01:20 +0000)]
r15005: Fix printf args to remove warnings.
Jeremy.
(This used to be commit 68d100830c5a6fa24b863071e8ca77ab264175a0)

16 years agor15003: patch based on code from Arkady Glabek <aglabek@centeris.com> to ensure that...
Gerald Carter [Sat, 8 Apr 2006 17:25:31 +0000 (17:25 +0000)]
r15003: patch based on code from Arkady Glabek <aglabek@centeris.com> to ensure that global memory is freed when unloading pam_winbind.so (needs more testing on non-linux platforms)
(This used to be commit 1e0b79e591d70352a96e0a0487d8f394dc7b36ba)

16 years agor14989: Fix from Mathias Dietz <MDIETZ@de.ibm.com>. EPERM can be
Jeremy Allison [Sat, 8 Apr 2006 05:09:12 +0000 (05:09 +0000)]
r14989: Fix from Mathias Dietz <MDIETZ@de.ibm.com>. EPERM can be
a valid return from getting an xattr. Don't disable if
we get it.
Jeremy.
(This used to be commit 7769b678f22d8ab4aa8aef55966813355bf2ce6d)