13 years agor22444: * Validate a SID before trying to convert it to a uid/gid via the public
Gerald Carter [Sun, 22 Apr 2007 09:32:14 +0000 (09:32 +0000)]
r22444: * Validate a SID before trying to convert it to a uid/gid via the public
  winbindd interface

* Add nss_info/*so files to the RHEL/Fedora packaging
(This used to be commit 1787fcb8c1199215fcec74472c727b8c8fbf5473)

13 years agor22441: Add automatic dependency tracking. The dependency generation is
James Peach [Sun, 22 Apr 2007 03:17:31 +0000 (03:17 +0000)]
r22441: Add automatic dependency tracking. The dependency generation is
toolchain independent, but since there's no portable method for
doing makefile includes, we can actually use the dependencies with
GNU make. It's easy to add this for other makes, but I don't have
any to test.

This also moves as much m4 as possible into the m4 directory where
no-one has to look at it. AFAICT, there's no way to hide depcomp
in there too, which is unfortunate.
(This used to be commit aa14900f8291a017aa7fab2bbb9a6c79b12889b2)

13 years agor22430: Add SID validate to sid2uid() and sid2gid() public entry points in winbindd
Gerald Carter [Sat, 21 Apr 2007 21:29:31 +0000 (21:29 +0000)]
r22430: Add SID validate to sid2uid() and sid2gid() public entry points in winbindd
(This used to be commit 0890cb941ed5d87a919edb5a896f331e900af007)

13 years agor22425: Avoid to segfault if we only have the realm.
Simo Sorce [Sat, 21 Apr 2007 20:43:54 +0000 (20:43 +0000)]
r22425: Avoid to segfault if we only have the realm.
(This used to be commit ace1520270d19d41c24236d4e26ccf77071ebeb9)

13 years agor22419: Update configure so that we only need one copy of os2_delete.c
James Peach [Fri, 20 Apr 2007 21:31:04 +0000 (21:31 +0000)]
r22419: Update configure so that we only need one copy of os2_delete.c
(This used to be commit e5dd3bbf29f206090d64134eb808e5f627317804)

13 years agor22418: Support running under launchd. We abstract the method of obtaining
James Peach [Fri, 20 Apr 2007 21:09:44 +0000 (21:09 +0000)]
r22418: Support running under launchd. We abstract the method of obtaining
sockets to listen on a little, because in the launchd case these
are provided for us. We also add an idle timeout so that a daemon
can exit after a period of inactivity.
(This used to be commit fc8589a3371d396197fae508e563f814899c2beb)

13 years agor22417: Refactor the various daemon run-mode options to make the semantics
James Peach [Fri, 20 Apr 2007 18:34:33 +0000 (18:34 +0000)]
r22417: Refactor the various daemon run-mode options to make the semantics
of the various flags explicit.
(This used to be commit 19c929c6330a50f278ac322ac5fcb83d03734ea2)

13 years agor22416: Remove precompiled headers on clean.
James Peach [Fri, 20 Apr 2007 18:12:07 +0000 (18:12 +0000)]
r22416: Remove precompiled headers on clean.
(This used to be commit 250028ef03296c2af90cc212c7734d5425db35e1)

13 years agor22413: Simplify the build rules for plugin modules. Add support for per-platform
James Peach [Fri, 20 Apr 2007 16:07:16 +0000 (16:07 +0000)]
r22413: Simplify the build rules for plugin modules. Add support for per-platform
exports files. Fix the shared library build pf pdb_ldap.
(This used to be commit b04dee02d1965a1bf6eba39e809f0c9b33fbfcda)

13 years agor22412: Add a "deletelocalgroup" subcommand to net sam.
Michael Adam [Fri, 20 Apr 2007 12:23:36 +0000 (12:23 +0000)]
r22412: Add a "deletelocalgroup" subcommand to net sam.

Thanks to Karolin Seeger <>.
(This used to be commit 1499c50513c091c06cc96e813856b3cdbebfe407)

13 years agor22411: Fix the build:
Michael Adam [Fri, 20 Apr 2007 12:06:38 +0000 (12:06 +0000)]
r22411: Fix the build:

Prototype of create_aio_ex_read, set_message and definition of
UNIXERROR have changed in r22389 and r22391? to require an additional
"inbuf" argument. Some places in smbd/aio.c had not been adapted.

This patch fixes the build.

(This used to be commit 9de1af6dc835fa12a75bae00935cd605f61217a3)

13 years agor22402: Fix build warning.
Günther Deschner [Fri, 20 Apr 2007 10:54:55 +0000 (10:54 +0000)]
r22402: Fix build warning.

(This used to be commit bf9131fed30b3d6f80c41734c04450a1e6bcba5b)

13 years agor22401: Add bzr revision+nick support to
Michael Adam [Fri, 20 Apr 2007 10:27:33 +0000 (10:27 +0000)]
r22401: Add bzr revision+nick support to

The plan is to actually synchronize with SAMBA_4_0's,
which is more elaborate. But there are a few differences in
behaviour I still have to check. So I am cheching this here in for
a start...

(This used to be commit dec7e31f298c565b49b7bd650e164274d0f61778)

13 years agor22395: allow profiling level to be set on startup
Herb Lewis [Fri, 20 Apr 2007 01:52:44 +0000 (01:52 +0000)]
r22395: allow profiling level to be set on startup
(This used to be commit f8f51e8648224af6645dbd0c2f2bffc678b83dac)

13 years agor22394: Remove test directory once we are finished.
James Peach [Thu, 19 Apr 2007 23:47:55 +0000 (23:47 +0000)]
r22394: Remove test directory once we are finished.
(This used to be commit e718606295f4d686767d1583fd5e774dd66b8b86)

13 years agor22393: fix cut&paste error
Simo Sorce [Thu, 19 Apr 2007 23:25:37 +0000 (23:25 +0000)]
r22393: fix cut&paste error
(This used to be commit 70878d698532aa8b0e151e7772894e251290186e)

13 years agor22392: Remove leftover potentially segfaulty code.
Simo Sorce [Thu, 19 Apr 2007 23:15:33 +0000 (23:15 +0000)]
r22392: Remove leftover potentially segfaulty code.
Check we are online before actually trying to connect anywhere
(This used to be commit ff5e0b2986d43de1e88c85783b451fcb9828d6a8)

13 years agor22391: Looks bigger than it is. Make "inbuf" available
Jeremy Allison [Thu, 19 Apr 2007 22:40:32 +0000 (22:40 +0000)]
r22391: Looks bigger than it is. Make "inbuf" available
to all callers of smb_setlen (via set_message()
calls). This will allow the server to reflect back
the correct encryption context.
(This used to be commit 2d80a96120a5fe2fe726f00746d36d85044c4bdb)

13 years agor22390: Patchset sent to samba-technical to address the winbind
Gerald Carter [Thu, 19 Apr 2007 22:26:09 +0000 (22:26 +0000)]
r22390: Patchset sent to samba-technical to address the winbind
loop when allocating a new id for a SID:

auth_util.patch Revert create_local_token() to
the 3.0.24 codebase

idmap_type.patch Have the caller fillin the
id_map.xid.type field when
resolving a SID so that if we allocate
a new id, we know what type to use

winbindd_api.patch Remove the WINBINDD_SIDS_TO_XIDS calls
from the public winbindd interface
for the 3.0.25 release

idmap_rid.patch Cleanup the idmap_rid backend to not
call back into winbindd to resolve
the SID in order to verify it's type.
(This used to be commit 3b24dae9e73b244540a68b631b428a4d0f57440b)

13 years agor22389: Start preparing for multiple encryption contexts in the
Jeremy Allison [Thu, 19 Apr 2007 20:50:49 +0000 (20:50 +0000)]
r22389: Start preparing for multiple encryption contexts in the
server. Allow server to reflect back to calling client
the encryption context that was sent.
(This used to be commit b49e90335d1e589916b5ab4992e3c4a2d221ca7e)

13 years agor22388: clearer message, thanks David
Simo Sorce [Thu, 19 Apr 2007 20:00:40 +0000 (20:00 +0000)]
r22388: clearer message, thanks David
(This used to be commit 7961476784713267efc19d305aa66c68275ccaa1)

13 years agor22376: Make sure we use krb5 when we identify just an older heimdal lib (0.6.x)
Günther Deschner [Thu, 19 Apr 2007 14:58:22 +0000 (14:58 +0000)]
r22376: Make sure we use krb5 when we identify just an older heimdal lib (0.6.x)
Timur, please check.

(This used to be commit f7ae237a7faa096efa26ca9e6674d45d2f77c9ce)

13 years agor22366: sync lib/talloc/ with samba4
Stefan Metzmacher [Thu, 19 Apr 2007 09:08:53 +0000 (09:08 +0000)]
r22366: sync lib/talloc/ with samba4

(This used to be commit 7fab12b34a818f029f4285a59d6e49768b7f8e79)

13 years agor22364: sync lib/tdb/ with samba4
Stefan Metzmacher [Thu, 19 Apr 2007 08:50:14 +0000 (08:50 +0000)]
r22364: sync lib/tdb/ with samba4

there's no code change here...

(This used to be commit 562a9ce019af802b4a71c210b69bc8b93ebcd76f)

13 years agor22363: merge from samba4:
Stefan Metzmacher [Thu, 19 Apr 2007 08:49:09 +0000 (08:49 +0000)]
r22363: merge from samba4:

fix compiler warning

(This used to be commit e9200b4475bcae4fd5eaaf94905c8a9beccd635a)

13 years agor22362: fix the build on othersystems
Stefan Metzmacher [Thu, 19 Apr 2007 08:45:29 +0000 (08:45 +0000)]
r22362: fix the build on othersystems

(This used to be commit 68a681038ca60c83784321979c595def9e74ed41)

13 years agor22358: Use gss error to NTSTATUS mapping function for errors.
Jeremy Allison [Thu, 19 Apr 2007 01:26:38 +0000 (01:26 +0000)]
r22358: Use gss error to NTSTATUS mapping function for errors.
(This used to be commit 11fa0ca9e21d478a4b79b8ca1e92936b26b03fe0)

13 years agor22355: Ensure we get good debug messages from gss_XX calls.
Jeremy Allison [Thu, 19 Apr 2007 01:20:37 +0000 (01:20 +0000)]
r22355: Ensure we get good debug messages from gss_XX calls.
(This used to be commit fe36fc79ddd4f2f2c88204055fca60a193586234)

13 years agor22354: Make client select krb5 encrpyt if krb5 already on.
Jeremy Allison [Thu, 19 Apr 2007 00:51:18 +0000 (00:51 +0000)]
r22354: Make client select krb5 encrpyt if krb5 already on.
(This used to be commit 7b89a5de57cd5fed814eda95e44dcc345f380fb2)

13 years agor22353: Fix bad #ifdefs.
Jeremy Allison [Thu, 19 Apr 2007 00:45:01 +0000 (00:45 +0000)]
r22353: Fix bad #ifdefs.
(This used to be commit 9173c846b11c587e04a70ede387cd4a15173e4f2)

13 years agor22352: Wow - working gss SMB sealing !
Jeremy Allison [Thu, 19 Apr 2007 00:44:39 +0000 (00:44 +0000)]
r22352: Wow - working gss SMB sealing !
(This used to be commit abcb2a4b0709ef84c50c1d9a85191dc3866cd138)

13 years agor22351: Making progress in tests...
Jeremy Allison [Thu, 19 Apr 2007 00:40:08 +0000 (00:40 +0000)]
r22351: Making progress in tests...
(This used to be commit f1726e04eb1d63387cf955c907fe077b2201a3ae)

13 years agor22350: Add some helpful debug messages.
Jeremy Allison [Thu, 19 Apr 2007 00:35:18 +0000 (00:35 +0000)]
r22350: Add some helpful debug messages.
(This used to be commit bf2e6bd82dc0d35313677c6cb04357da1e74ce4f)

13 years agor22349: Fix missing ) in #else path.
Jeremy Allison [Wed, 18 Apr 2007 22:34:23 +0000 (22:34 +0000)]
r22349: Fix missing ) in #else path.
(This used to be commit 0f5680adcfb4f1636ba5a5c3ba9684f9fde8476a)

13 years agor22348: 3_0 as well
Simo Sorce [Wed, 18 Apr 2007 22:25:17 +0000 (22:25 +0000)]
r22348: 3_0 as well
(This used to be commit ad57434faf806a6ad27beb0f75b73d5389a35382)

13 years agor22345: Only use new krb5 OID.
Jeremy Allison [Wed, 18 Apr 2007 22:02:30 +0000 (22:02 +0000)]
r22345: Only use new krb5 OID.
(This used to be commit 1a46d2dcb930f433457877e143f5a602b6b9091e)

13 years agor22344: Correctly create sub-struct for GSS encryption.
Jeremy Allison [Wed, 18 Apr 2007 21:56:18 +0000 (21:56 +0000)]
r22344: Correctly create sub-struct for GSS encryption.
(This used to be commit 197c90ec78545e7e3c03ff5787839ca134f3036a)

13 years agor22343: Commit to 3_0 as well after adapting the patch.
Simo Sorce [Wed, 18 Apr 2007 21:10:37 +0000 (21:10 +0000)]
r22343: Commit to 3_0 as well after adapting the patch.
(tdb_delete_bystring instead of tdb_delete is used here)
(This used to be commit ee40cead097ed2c005f5f80b24c9f681e054849a)

13 years agor22341: Fix build of examples/VFS: adapt include for new place of tdb...
Michael Adam [Wed, 18 Apr 2007 20:18:43 +0000 (20:18 +0000)]
r22341: Fix build of examples/VFS: adapt include for new place of tdb...
(This used to be commit e7110058286ed7e723c9a24e555b9c3b527c456e)

13 years agor22340: Fix another segfault in idmap_ldap.c caused by setting the iterator
Gerald Carter [Wed, 18 Apr 2007 16:45:00 +0000 (16:45 +0000)]
r22340: Fix another segfault in idmap_ldap.c caused by setting the iterator
LDAPMessage * to NULL on each loop rotation.
(This used to be commit 356dd0dd3a36a8f6061ba60f556e889de7c28140)

13 years agor22330: For my own convenience (changes discussed some weeks ago with
Michael Adam [Wed, 18 Apr 2007 11:12:31 +0000 (11:12 +0000)]
r22330: For my own convenience (changes discussed some weeks ago with
Jerry, who basically didn't care - now I can commit them myself;-):

- Add a call to to ensure sane version number even
  from a plain checkout.
- Add a "nodocs" switch to allow for calling without
  the need of having samba-docs and using-samba around.
(This used to be commit 1e1d22028aff2fc15cb471e33d5af56ee92bc3e3)

13 years agor22327: Finish the gss-spnego part of the seal code. Now
Jeremy Allison [Wed, 18 Apr 2007 00:34:10 +0000 (00:34 +0000)]
r22327: Finish the gss-spnego part of the seal code. Now
for testing....
(This used to be commit 1c1f5360b67792f14b50835a2c5a4d4ac68aca8f)

13 years agor22321: BUG 4509: Makefile fix linking the and
Gerald Carter [Tue, 17 Apr 2007 21:32:59 +0000 (21:32 +0000)]
r22321: BUG 4509: Makefile fix linking the and
plugins in $libdir/nss_info to idmap/
(This used to be commit 086316d62e953752c367b7cc7ba945fb1692d080)

13 years agor22320: Be more careful and check for the euid instead of the uid.
Lars Müller [Tue, 17 Apr 2007 18:35:10 +0000 (18:35 +0000)]
r22320: Be more careful and check for the euid instead of the uid.

Thx for the hint James!
(This used to be commit 72be9766a9b3a860717222a86d636c1dbbf61b12)

13 years agor22318: If we're running as non root we might not be able to dump the core file
Lars Müller [Tue, 17 Apr 2007 17:17:19 +0000 (17:17 +0000)]
r22318: If we're running as non root we might not be able to dump the core file
to the corepath.

Even the chdir() will fail if the LOGFILEBASE path is set 0700.

If the currrent user doesn't have the permission to create the core file
we end with:
   unable to change to <LOGFILEBASE>
   refusing to dump core

The alternative would be to change the permissions of the directory.
But taht would not ensure core dumps are working out of the box.
(This used to be commit 0814a3acbe0fe40badf88690ab61d8ad106419d6)

13 years agor22317: add tdb_ prefix to non static function
Stefan Metzmacher [Tue, 17 Apr 2007 17:07:14 +0000 (17:07 +0000)]
r22317: add tdb_ prefix to non static function

(This used to be commit 56e31d60c672689e934fbed2794c7c54cf874b11)

13 years agor22316: merge from samba4:
Stefan Metzmacher [Tue, 17 Apr 2007 17:03:38 +0000 (17:03 +0000)]
r22316: merge from samba4:

this function should be static

(This used to be commit f722fd32da56aabca2fffe243e89177bc23e2be7)

13 years agor22315: move tdbback.c content into tdbbackup.c
Stefan Metzmacher [Tue, 17 Apr 2007 16:53:06 +0000 (16:53 +0000)]
r22315: move tdbback.c content into tdbbackup.c
and make the functions static.

also use libreplace headers in tdbbackup.c

(This used to be commit 1ca12b1c9e7e8267fa13a40ebeb2bdcd199237de)

13 years agor22314: use libreplace headers
Stefan Metzmacher [Tue, 17 Apr 2007 16:36:24 +0000 (16:36 +0000)]
r22314: use libreplace headers

(This used to be commit d757cdc092b07972c110208717f13fdc0656f55f)

13 years agor22313: as discussed with simo:
Stefan Metzmacher [Tue, 17 Apr 2007 16:06:20 +0000 (16:06 +0000)]
r22313: as discussed with simo:

remove the only usage of backup_tdb() in samba3.
As backup_tdb() will go completely soon.

(This used to be commit 363d1d676c568e10bbcbe2b95e422067a4740161)

13 years agor22304: remove unused stuff completely to fix the build, sorry
Stefan Metzmacher [Tue, 17 Apr 2007 12:21:47 +0000 (12:21 +0000)]
r22304: remove unused stuff completely to fix the build, sorry

(This used to be commit 4d53100e3cda0f34631990b8541971822f8ebd55)

13 years agor22302: fix the build when no shared-library support is detected
Stefan Metzmacher [Tue, 17 Apr 2007 10:07:12 +0000 (10:07 +0000)]
r22302: fix the build when no shared-library support is detected

(This used to be commit 9ad4098910bbfd86ff050b9778301772a622f74d)

13 years agor22301: remove unused vars
Stefan Metzmacher [Tue, 17 Apr 2007 10:05:43 +0000 (10:05 +0000)]
r22301: remove unused vars

(This used to be commit 2e6e4235da27a7da10366580ae1c8f60195411f4)

13 years agor22298: move ZERO_*, ARRAY_SIZE and PTR_DIFF macros into libreplace
Stefan Metzmacher [Tue, 17 Apr 2007 08:03:29 +0000 (08:03 +0000)]
r22298: move ZERO_*, ARRAY_SIZE and PTR_DIFF macros into libreplace

(This used to be commit 8a7d2e633b98aa9c73cf1f7d1369015b294cf2e1)

13 years agor22291: Fix off-by-one in tconX parsing.
Jeremy Allison [Tue, 17 Apr 2007 02:14:28 +0000 (02:14 +0000)]
r22291: Fix off-by-one in tconX parsing.
(This used to be commit bc6ac4feac8c62cda2b6151eb648d3d5979e8a95)

13 years agor22285: Allow arbitrary bases in int and ulong parsing.
Jeremy Allison [Mon, 16 Apr 2007 22:42:45 +0000 (22:42 +0000)]
r22285: Allow arbitrary bases in int and ulong parsing.
(This used to be commit c1f1949ff134c343cb0ee8f8e46cf58b1dfe97c7)

13 years agor22283: Remove very old bug where we assigned the online mode of
Gerald Carter [Mon, 16 Apr 2007 20:29:33 +0000 (20:29 +0000)]
r22283: Remove very old bug where we assigned the online mode of
the domain to queried to our own domain.
(This used to be commit 2abeec576805b5e921b3606ab09ce9c1fd809566)

13 years agor22282: Fix last few name -> servicename changes.
Jeremy Allison [Mon, 16 Apr 2007 20:06:02 +0000 (20:06 +0000)]
r22282: Fix last few name -> servicename changes.
(This used to be commit f5c22f26f7ec7e8139fbf11a75820336db3d55c0)

13 years agor22280: merge from samba4:
Stefan Metzmacher [Mon, 16 Apr 2007 19:56:42 +0000 (19:56 +0000)]
r22280: merge from samba4:

add a lot more detailed strtoll() and strtoull() tests

(This used to be commit 737b445007109e3005e4c5fb278b56f00b8c157d)

13 years agor22277: __location__ is defined in libreplace now
Stefan Metzmacher [Mon, 16 Apr 2007 19:51:30 +0000 (19:51 +0000)]
r22277: __location__ is defined in libreplace now

(This used to be commit 9b45075a265d00847cf77b549759ad9373a16615)

13 years agor22276: Fix name -> servicename in messages.c
Jeremy Allison [Mon, 16 Apr 2007 19:47:41 +0000 (19:47 +0000)]
r22276: Fix name -> servicename in messages.c
(This used to be commit cc4face3bc269afa7af19bde534cacc04f9510a9)

13 years agor22274: merge from samba4:
Stefan Metzmacher [Mon, 16 Apr 2007 19:46:06 +0000 (19:46 +0000)]
r22274: merge from samba4:

- provide __LINESTR__ macro
- add __STRINGSTRING() macro to really create a string of __LINE__
- fix __location__ macro

(This used to be commit 5ca18546444e3e65491c2104cf8eeb1022bb5591)

13 years agor22271: merge from samba4:
Stefan Metzmacher [Mon, 16 Apr 2007 19:23:00 +0000 (19:23 +0000)]
r22271: merge from samba4:

provide __location__ in replace.h

and see how the build-farm likes this simpler version

(This used to be commit 3f87165771ecbbcd70e870235e324d25b21a04d4)

13 years agor22268: merge from samba4:
Stefan Metzmacher [Mon, 16 Apr 2007 19:15:57 +0000 (19:15 +0000)]
r22268: merge from samba4:

protect #define __location__ with an #ifndef

(This used to be commit 4c93c05542c5a238b1b7a5cd9b75f9f852c0ad4d)

13 years agor22266: Fix bug #4512 - we were returning a volume label greater than
Jeremy Allison [Mon, 16 Apr 2007 19:10:16 +0000 (19:10 +0000)]
r22266: Fix bug #4512 - we were returning a volume label greater than
32 unicode chars. Windows XP doesn't like that :-).
(This used to be commit e59b5276b56d6963ddd0598bbd1b15426d2d13e8)

13 years agor22264: merge from samba4:
Stefan Metzmacher [Mon, 16 Apr 2007 12:43:54 +0000 (12:43 +0000)]
r22264: merge from samba4:

use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0
and #ifndef doesn't work.

(This used to be commit 66b0a6cc51a3987c489cc71a17c0da632bf6a6bc)

13 years agor22262: fix the build on systems without GSS_C_NT_HOSTBASED_SERVICE
Stefan Metzmacher [Mon, 16 Apr 2007 12:00:08 +0000 (12:00 +0000)]
r22262: fix the build on systems without GSS_C_NT_HOSTBASED_SERVICE

(This used to be commit 402704b62972c223f3e70bcd6221dc7c3a64f4b9)

13 years agor22254: merge from samba4:
Stefan Metzmacher [Mon, 16 Apr 2007 09:44:00 +0000 (09:44 +0000)]
r22254: merge from samba4:

- make the strtoll tests more verbose
- add initial strtoull tests

(This used to be commit 9865d3165d629c56a24d9fa5ee993f4b04ba12de)

13 years agor22252: merge from samba4:
Stefan Metzmacher [Mon, 16 Apr 2007 09:20:52 +0000 (09:20 +0000)]
r22252: merge from samba4:

add prototype of setenv

(This used to be commit 42ccfaf5e58d92e04ba490f726e5d6972039bdc4)

13 years agor22249: move tdb code to lib/tdb/ as in samba4
Stefan Metzmacher [Mon, 16 Apr 2007 08:20:13 +0000 (08:20 +0000)]
r22249: move tdb code to lib/tdb/ as in samba4

(This used to be commit c7def92a9c2e17c90061ef17bc14e36250574e85)

13 years agor22247: merge from samba4:
Stefan Metzmacher [Mon, 16 Apr 2007 07:41:01 +0000 (07:41 +0000)]
r22247: merge from samba4:

only test strtoll once

(This used to be commit 17088fd644ef68ac2e96ed1246339b65943d63d0)

13 years agor22244: merge from samba4:
Stefan Metzmacher [Mon, 16 Apr 2007 06:30:08 +0000 (06:30 +0000)]
r22244: merge from samba4:

remove useless printf's

(This used to be commit cf7c57eae5671cd15f0cee0173c7b05a8a8ba055)

13 years agor22240: merge from samba4:
Stefan Metzmacher [Mon, 16 Apr 2007 06:08:43 +0000 (06:08 +0000)]
r22240: merge from samba4:

use strlcpy instead of strcpy to make the IBM checker happy

(This used to be commit fe4be25c3056260049a8052e072500756bf14fce)

13 years agor22230: Let's just cast here, the 2 calls have different allocation mechanisms.
Simo Sorce [Sun, 15 Apr 2007 23:58:39 +0000 (23:58 +0000)]
r22230: Let's just cast here, the 2 calls have different allocation mechanisms.
We just let domname and name hang on the mem ctx until the call returns,
and the context will be destroyed.

(This used to be commit c38d8396c513d4c418f64b27a9f7c25757388674)

13 years agor22229: discard_const_p is in lib/replace now
Stefan Metzmacher [Sun, 15 Apr 2007 21:14:37 +0000 (21:14 +0000)]
r22229: discard_const_p is in lib/replace now

(This used to be commit 8dea4ebe98ec5bdb7fd55b54e9b14a52db817f4f)

13 years agor22227: merge from samba4:
Stefan Metzmacher [Sun, 15 Apr 2007 21:13:48 +0000 (21:13 +0000)]
r22227: merge from samba4:

move discard_const macros to librelace

(This used to be commit 8f4a39127f7b560a7a609e74423ccb88f53e545e)

13 years agor22224: merge from samba4:
Stefan Metzmacher [Sun, 15 Apr 2007 20:57:48 +0000 (20:57 +0000)]
r22224: merge from samba4:

make comparing of struct tm more verbose and portable

(This used to be commit 29cbd75f22bcbb10d049910c3a72d911094ccb05)

13 years agor22221: merge from samba4:
Stefan Metzmacher [Sun, 15 Apr 2007 20:12:09 +0000 (20:12 +0000)]
r22221: merge from samba4:

- libreplace unsetenv() and strptime() replacements

(This used to be commit 057c1c04d09b48c713ebc0b334cabcefc02561e9)

13 years agor22214: Fix incompatible pointer type warnings. Simo, please check and merge to 3_0_25
Volker Lendecke [Sat, 14 Apr 2007 06:44:30 +0000 (06:44 +0000)]
r22214: Fix incompatible pointer type warnings. Simo, please check and merge to 3_0_25
if appropriate.

(This used to be commit 6a4f6c5177b4837fe7a238f067abbc5739ab0812)

13 years agor22213: We can't use become_root() here, as it does DEBUG()
Volker Lendecke [Sat, 14 Apr 2007 06:40:47 +0000 (06:40 +0000)]
r22213: We can't use become_root() here, as it does DEBUG()
itself. become_root_uid_only did not :-)

Revert 21868, we need to find a better way.

(This used to be commit 629f966714c7a8d96b06027d514b86cde81b69b9)

13 years agor22212: Cope with signature errors on sessionsetupX logins
Jeremy Allison [Sat, 14 Apr 2007 00:53:38 +0000 (00:53 +0000)]
r22212: Cope with signature errors on sessionsetupX logins
where the server just reflects our signature back
to us. Allow the upper layer to see the real error.
(This used to be commit 6cf0b93b1d8cb97dc665e14ace94a259def67724)

13 years agor22211: Don't return a value from void functions !
Jeremy Allison [Fri, 13 Apr 2007 22:56:27 +0000 (22:56 +0000)]
r22211: Don't return a value from void functions !
(This used to be commit 1dd8d3a723ac2262a45fcd717daef79bffbf30d5)

13 years agor22210: Fix typo in testing for non-centry entries.
Jeremy Allison [Fri, 13 Apr 2007 22:42:21 +0000 (22:42 +0000)]
r22210: Fix typo in testing for non-centry entries.
(This used to be commit b89ecbcac651034d818a41d8a1d0c5e7313f37b8)

13 years agor22209: Fix the storage of time_t -> make it 64 bits (use the
Jeremy Allison [Fri, 13 Apr 2007 22:29:50 +0000 (22:29 +0000)]
r22209: Fix the storage of time_t -> make it 64 bits (use the
same load/store function as NTTIME). Add a version number
string to the winbindd cache so we can tell if it needs
upgrading. THIS WILL DELETE ANY EXISTING winbindd_cache.tdb
on first startup regardless of offline auth status. Once
this is done we're in good shape though.
(This used to be commit c52c7f91af80d5fbb2574b5acf10e6afef3b0c7e)

13 years agor22207: Fill in the validation functions. Now to test...
Jeremy Allison [Fri, 13 Apr 2007 01:46:47 +0000 (01:46 +0000)]
r22207: Fill in the validation functions. Now to test...
(This used to be commit fc2b9e860ef9512eb074622e0ad134ff3f30bfe7)

13 years agor22206: Added boilerplate to be filled in for other validation functions.
Jeremy Allison [Fri, 13 Apr 2007 01:00:44 +0000 (01:00 +0000)]
r22206: Added boilerplate to be filled in for other validation functions.
(This used to be commit 9be463eb0cb4d65c40e35c504059289696419486)

13 years agor22205: Add some flesh to the bones of the cache validation code.
Jeremy Allison [Fri, 13 Apr 2007 00:39:06 +0000 (00:39 +0000)]
r22205: Add some flesh to the bones of the cache validation code.
(This used to be commit b773ea2c8a107344fc524b41a2c81ecc723bd9ec)

13 years agor22204: Workaround to quickly close bug #4508
Simo Sorce [Thu, 12 Apr 2007 21:10:06 +0000 (21:10 +0000)]
r22204: Workaround to quickly close bug #4508
This hack makes thing work, but we will need to try again to
make the getpw* calls fully async, that's the real fix.
(This used to be commit 2552859b3d9e28d5f25b339f5d24a8d2dc36b46b)

13 years agor22202: Volker is clever :-). Use TDB_NOMMAP to prevent any wild pointer
Jeremy Allison [Thu, 12 Apr 2007 19:16:29 +0000 (19:16 +0000)]
r22202: Volker is clever :-). Use TDB_NOMMAP to prevent any wild pointer
problems when validating the winbindd cache. Wish I'd have
thought of that.
(This used to be commit 6b0a8cbbb883b7041ed4b1f6c1ae90233921d154)

13 years agor22181: Fix for EISCON in open_any_socket_out from William Jojo
Jeremy Allison [Thu, 12 Apr 2007 01:09:19 +0000 (01:09 +0000)]
r22181: Fix for EISCON in open_any_socket_out from William Jojo
for bug #3632.
(This used to be commit 7979a5a350739150a9c7077f2c35d9512d8596e4)

13 years agor22175: sync packaging changes from SAMBA_3_0_25
Gerald Carter [Wed, 11 Apr 2007 12:54:00 +0000 (12:54 +0000)]
r22175: sync packaging changes from SAMBA_3_0_25
(This used to be commit 057db3255860e8462188f405712f89db97f6abac)

13 years agor22173: BUG 4491, 4501: Additional fixes for protecting against
Gerald Carter [Wed, 11 Apr 2007 12:32:58 +0000 (12:32 +0000)]
r22173: BUG 4491, 4501: Additional fixes for protecting against
crashes in allocate_id().

BUG 4501: Fix segv in idmap_ad caused by resetting the
entry iterator when parsing search results.
(This used to be commit bd6ebbfb9fb9d95bdf41eab1fd134170fcf6b6bf)

13 years agor22172: FSCTL_RECALL_FILE is 0x90117 according to my traces. Record it here.
Alexander Bokovoy [Wed, 11 Apr 2007 12:32:07 +0000 (12:32 +0000)]
r22172: FSCTL_RECALL_FILE is 0x90117 according to my traces. Record it here.
(This used to be commit f36bc61d17baf468ec66151dda347fdfc40e0297)

13 years agor22164: Fix missing lock count release in transaction cancel.
Jeremy Allison [Wed, 11 Apr 2007 05:27:00 +0000 (05:27 +0000)]
r22164: Fix missing lock count release in transaction cancel.
Found by Taj Khattra <>.
(This used to be commit a014a6c30d1e0d75a1a49fdd61bad8cf4cc90327)

13 years agor22163: Pure reformatting. I hate 4 space tabstops :-).
Jeremy Allison [Wed, 11 Apr 2007 05:05:33 +0000 (05:05 +0000)]
r22163: Pure reformatting. I hate 4 space tabstops :-).
(This used to be commit 99abe96b2b8e41e4c7536d35cc169f7e6c3eba1c)

13 years agor22159: BUG 4501 (second half of fix): Just disable the
Gerald Carter [Tue, 10 Apr 2007 22:59:42 +0000 (22:59 +0000)]
r22159: BUG 4501 (second half of fix): Just disable the
uid/gid allocation if no idmap alloca backend has been
defined and we are not using a 3.0.24 idmap backend
compatible configuration.
(This used to be commit 0b700456f45d2bdfe8538bcfd0fce8ec2b9c3adb)

13 years agor22158: BUG 4501 (partial): Fix a crash caused by not using the
Gerald Carter [Tue, 10 Apr 2007 21:14:44 +0000 (21:14 +0000)]
r22158: BUG 4501 (partial): Fix a crash caused by not using the
nss_info_{rfc2307,sfu} plugin with idmap_ad.
(This used to be commit f640f056bfbf1013d6b3df89632109011fc42361)

13 years agor22157: Fix bug #3634 - stop nmbd segfaulting with bad interface line.
Jeremy Allison [Tue, 10 Apr 2007 20:35:30 +0000 (20:35 +0000)]
r22157: Fix bug #3634 - stop nmbd segfaulting with bad interface line.
(This used to be commit c3e2207cb40386c565b23fcabc8c7384b10216de)

13 years agor22155: Fixed warning #4498 from
Jeremy Allison [Tue, 10 Apr 2007 18:21:37 +0000 (18:21 +0000)]
r22155: Fixed warning #4498 from
(This used to be commit f1b22c952719f004d7e33813c4d0f10514e1fff9)

13 years agor22154: Make struct smbdb_ctx an opaque pointer so users of the API
Jeremy Allison [Tue, 10 Apr 2007 18:12:25 +0000 (18:12 +0000)]
r22154: Make struct smbdb_ctx an opaque pointer so users of the API
don't need to have tdb.h.
(This used to be commit 512542c90a78006bda3470eed7fb6d3f6e708eed)