12 years agor18663: Fix one more uuid -> GUID.
Jeremy Allison [Tue, 19 Sep 2006 01:07:40 +0000 (01:07 +0000)]
r18663: Fix one more uuid -> GUID.
(This used to be commit e568271af2b5c20cff70b72b8ab4b1b704122b40)

12 years agor18662: print out the failing command for dynconfig.o too
Stefan Metzmacher [Tue, 19 Sep 2006 00:56:02 +0000 (00:56 +0000)]
r18662: print out the failing command for dynconfig.o too

(This used to be commit f51a200f6730c6c760348adc12612587b1e79df9)

12 years agor18661: C++ warnings
Volker Lendecke [Tue, 19 Sep 2006 00:55:40 +0000 (00:55 +0000)]
r18661: C++ warnings
(This used to be commit 6004b8025de3207f5af2d62087ec13c5e444fec7)

12 years agor18660: Fix build, one uuid->GUID was missed.
Jim McDonough [Tue, 19 Sep 2006 00:39:21 +0000 (00:39 +0000)]
r18660: Fix build, one uuid->GUID was missed.
(This used to be commit f8ea2069d444a6630b61828999605a3ed011db02)

12 years agor18659: restore BOOL, sorry:-)
Stefan Metzmacher [Tue, 19 Sep 2006 00:29:41 +0000 (00:29 +0000)]
r18659: restore BOOL, sorry:-)

libreplace only provides 'bool' not BOOL

(This used to be commit ce6a0723ff116fc1867705c3d0b520c36cba5a6e)

12 years agor18654: Rename "struct uuid" => "struct GUID" for consistency.
Jelmer Vernooij [Tue, 19 Sep 2006 00:12:11 +0000 (00:12 +0000)]
r18654: Rename "struct uuid" => "struct GUID" for consistency.
(This used to be commit 5de76767e857e9d159ea46e2ded612ccd6d6bf19)

12 years agor18653: this stuff is in libreplace...
Stefan Metzmacher [Mon, 18 Sep 2006 23:47:36 +0000 (23:47 +0000)]
r18653: this stuff is in libreplace...

(This used to be commit 1dd0ed613410e8b8db44396eeb4627a17f23db34)

12 years agor18652: libreplace has replacements for strndup and strnlen
Stefan Metzmacher [Mon, 18 Sep 2006 23:46:58 +0000 (23:46 +0000)]
r18652: libreplace has replacements for strndup and strnlen

(This used to be commit 9f3599a7ca636dd21c150873f395abde153ee6fd)

12 years agor18651: this comment is wrong, was cut'n'paste...
Stefan Metzmacher [Mon, 18 Sep 2006 23:28:46 +0000 (23:28 +0000)]
r18651: this comment is wrong, was cut'n'paste...

(This used to be commit e3b88fb65567f19964a4ef68267a64de14132e52)

12 years agor18650: this isn't needed twice in include/includes.h
Stefan Metzmacher [Mon, 18 Sep 2006 23:27:36 +0000 (23:27 +0000)]
r18650: this isn't needed twice in include/includes.h

(This used to be commit ee1127518347690e8baea1b5010ccada0ba29890)

12 years agor18649: the PRINTF_ATTRIUTE() macro is provided by libreplace
Stefan Metzmacher [Mon, 18 Sep 2006 23:26:14 +0000 (23:26 +0000)]
r18649: the PRINTF_ATTRIUTE() macro is provided by libreplace

(This used to be commit dd76f4f5f374ec4822abbf1a09d26287926b92ce)

12 years agor18648: this is provided by libreplace
Stefan Metzmacher [Mon, 18 Sep 2006 23:18:38 +0000 (23:18 +0000)]
r18648: this is provided by libreplace

(This used to be commit cbc3f0926375b92b40c4f550296cf90453288f49)

12 years agor18647: print out the failing cammand, this is very usefull for the build farm
Stefan Metzmacher [Mon, 18 Sep 2006 23:16:39 +0000 (23:16 +0000)]
r18647: print out the failing cammand, this is very usefull for the build farm

(This used to be commit ab58cd10568305e1059b4259ecba860025b691e3)

12 years agor18646: now we can have the socket_wrapper.c completely in sync with samba4
Stefan Metzmacher [Mon, 18 Sep 2006 22:55:10 +0000 (22:55 +0000)]
r18646: now we can have the socket_wrapper.c completely in sync with samba4

(This used to be commit d4d9b7e02614e30ab410a26654db3ca66ffe06e6)

12 years agor18644: bring in libreplace in lib/replace
Stefan Metzmacher [Mon, 18 Sep 2006 22:49:20 +0000 (22:49 +0000)]
r18644: bring in libreplace in lib/replace

(This used to be commit 596cbe73dd268742acf456fccd8a234376fb0c97)

12 years agor18643: Fix a 64-bit warning
Volker Lendecke [Mon, 18 Sep 2006 22:32:23 +0000 (22:32 +0000)]
r18643: Fix a 64-bit warning
(This used to be commit bd175177960f39ef70d73d09e304299e03372bd6)

12 years agor18642: convert [out] parameters to pointers in Spooler IDL
Gerald Carter [Mon, 18 Sep 2006 22:27:37 +0000 (22:27 +0000)]
r18642: convert [out] parameters to pointers in Spooler IDL
(This used to be commit 9c67dd36c633bf367322385f6d43ca8bbdecaa70)

12 years agor18641: Checking in the wkssvc files after updating the [out]
Gerald Carter [Mon, 18 Sep 2006 22:20:37 +0000 (22:20 +0000)]
r18641: Checking in the wkssvc files after updating the [out]
pointers.  Waiting on on srvsvc files before it can actually compile.
(This used to be commit 1dbfb25d0a8a6e75af17ac8efff82bbe28d47094)

12 years agor18640: move to socket_wrapper to lib/socket_wrapper/
Stefan Metzmacher [Mon, 18 Sep 2006 22:12:56 +0000 (22:12 +0000)]
r18640: move to socket_wrapper to lib/socket_wrapper/
and sync it with samba4

(This used to be commit 9c0e5b29f1451a90605cce7e1e032e5516b6970d)

12 years agor18638: This is an attempt to fix the AIX build. Jeremy, as you are busy talking
Volker Lendecke [Mon, 18 Sep 2006 21:29:08 +0000 (21:29 +0000)]
r18638: This is an attempt to fix the AIX build. Jeremy, as you are busy talking
SASL/Steve/Andrew I can't right now ask why the aio.h is needed for the
timespec test.

Might have to revert that soon.

(This used to be commit fa53ad6571c08e49c3fbe61d9be081c06633e408)

12 years agor18632: Make C++ compilers happy.
Jelmer Vernooij [Mon, 18 Sep 2006 20:41:45 +0000 (20:41 +0000)]
r18632: Make C++ compilers happy.
(This used to be commit 609224565f728b7fe44f070ad0013af7a6e59267)

12 years agor18623: starting on eventlog IDL
Gerald Carter [Mon, 18 Sep 2006 19:46:11 +0000 (19:46 +0000)]
r18623: starting on eventlog IDL
(This used to be commit 6cb7b6226da0b3060f4850fc2cc2ca82fbdcaa8f)

12 years agor18622: Fix at least the python bindings *build*, I'm sure there is much more to
Günther Deschner [Mon, 18 Sep 2006 19:43:08 +0000 (19:43 +0000)]
r18622: Fix at least the python bindings *build*, I'm sure there is much more to
do so that they actually work again.

(This used to be commit 49d07d0cf9f8735f53d40dd094a0b17b4573e2b2)

12 years agor18621: Fix samr server build.
Günther Deschner [Mon, 18 Sep 2006 19:27:15 +0000 (19:27 +0000)]
r18621: Fix samr server build.

(This used to be commit 23d6656427d0f7184f5365f6cb9356b15186b30e)

12 years agor18620: Fallback to non-paging LDAP searches in ads_do_search_retry_internal()
Günther Deschner [Mon, 18 Sep 2006 19:26:09 +0000 (19:26 +0000)]
r18620: Fallback to non-paging LDAP searches in ads_do_search_retry_internal()
for anonymous bound connections.

When doing anonymous bind you can never use paged LDAP control for
RootDSE searches on AD.

(This used to be commit dc1d92faabd4b291f607eb481349ba37e52ef11e)

12 years agor18619: Add rpcclient helper for samr_querydispinfo2|3 for testing.
Günther Deschner [Mon, 18 Sep 2006 19:18:29 +0000 (19:18 +0000)]
r18619: Add rpcclient helper for samr_querydispinfo2|3 for testing.

(This used to be commit 1a307954e5ddc1441524eb6d22258be387cca9d4)

12 years agor18618: * remove svn:externals
Gerald Carter [Mon, 18 Sep 2006 19:02:06 +0000 (19:02 +0000)]
r18618: * remove svn:externals
* 'make idl' now requires pidl in the current PATH
* regenerate winreg ndr files
(This used to be commit e936d39e00f07d942ce977b9a725ebe7b9e57625)

12 years agor18617: fix unixinfo call after change to IDL (change from pointer)
Gerald Carter [Mon, 18 Sep 2006 18:30:20 +0000 (18:30 +0000)]
r18617: fix unixinfo call after change to IDL (change from pointer)
(This used to be commit fd0579b9638260309721a71fbc07e60da0a23ea0)

12 years agor18616: fix breakage after DLIST_ADD_END() changes for --with-pam
Gerald Carter [Mon, 18 Sep 2006 18:28:56 +0000 (18:28 +0000)]
r18616: fix breakage after DLIST_ADD_END() changes for --with-pam
(This used to be commit 5c00b5497b7b2bb345429893d247cbb6bb0f4e20)

12 years agor18613: Metze, in your DLINKLIST commit you changed this
Jeremy Allison [Mon, 18 Sep 2006 15:20:33 +0000 (15:20 +0000)]
r18613: Metze, in your DLINKLIST commit you changed this
from 10 seconds to 30 seconds. I don't think you
meant to do this....
(This used to be commit dd1691cf81492cfecc7f015ba201b78e2588db90)

12 years agor18612: remove RPC-ECHO till it gets fixed
Stefan Metzmacher [Mon, 18 Sep 2006 10:15:58 +0000 (10:15 +0000)]
r18612: remove RPC-ECHO till it gets fixed

(This used to be commit 2afeec3d15740261356b5a51b0413378f8d10cf5)

12 years agor18608: -D_SAMBA_BUILD_ was already added in another place to CFLAGS
Stefan Metzmacher [Mon, 18 Sep 2006 09:05:23 +0000 (09:05 +0000)]
r18608: -D_SAMBA_BUILD_ was already added in another place to CFLAGS
so we don't need it twice

(This used to be commit 19259e5e93edac4f247b7a71480f39eec4c76ed1)

12 years agor18606: - fix the detection of the working quota implementation
Stefan Metzmacher [Mon, 18 Sep 2006 08:55:35 +0000 (08:55 +0000)]
r18606: - fix the detection of the working quota implementation
- we now define the set of samba related include path in one place
  so that we can't get it wrong in different places

(This used to be commit 6bf0aad052699d21a242b5a25ef0a360d320c078)

12 years agor18605: sync dlinklist.h with samba4, that means DLIST_ADD_END()
Stefan Metzmacher [Mon, 18 Sep 2006 07:52:16 +0000 (07:52 +0000)]
r18605: sync dlinklist.h with samba4, that means DLIST_ADD_END()
and DLIST_DEMOTE() now take the type of the tmp pointer
not the tmp pointer itself anymore.

(This used to be commit 2f58645b7094e81dff3734f11aa183ea2ab53d2d)

12 years agor18603: Add in the NFSv4 ACL mapping code from IBM.
Jeremy Allison [Mon, 18 Sep 2006 02:27:48 +0000 (02:27 +0000)]
r18603: Add in the NFSv4 ACL mapping code from IBM.
Sorry for the delay :-).
(This used to be commit a52fa218952ffcd784ea31e947aa4d17dfdc8ee0)

12 years agor18598: Add marshalling support to smb_io_time.
Volker Lendecke [Sun, 17 Sep 2006 20:28:46 +0000 (20:28 +0000)]
r18598: Add marshalling support to smb_io_time.

(This used to be commit 2ab0ab326210a6e2b23a15c0cfc8f21ac2fcceac)

12 years agor18597: A C++ warning
Volker Lendecke [Sun, 17 Sep 2006 20:05:09 +0000 (20:05 +0000)]
r18597: A C++ warning
(This used to be commit 528082aed8c24b54d5781c6b3a6062b6cded74ef)

12 years agor18572: Use the autogenerated client and server for the echo interface and implement
Jelmer Vernooij [Fri, 15 Sep 2006 22:49:27 +0000 (22:49 +0000)]
r18572: Use the autogenerated client and server for the echo interface and implement
some of the missing functions. RPC-ECHO now passes against Samba3.
(This used to be commit 9e9a05366176454cc1779acc6c2b6070743f5939)

12 years agor18562: quick build fix rather than rolling back (I didn't actually intend the previo...
Gerald Carter [Fri, 15 Sep 2006 18:54:37 +0000 (18:54 +0000)]
r18562: quick build fix rather than rolling back (I didn't actually intend the previous commit but got confused between Samab 3 & 4 branches)
(This used to be commit 990e7c3f8eda0c7902bcab0523218b6b218e2ef4)

12 years agor18560: * Add in the winreg and initshutdown IDL files
Gerald Carter [Fri, 15 Sep 2006 18:32:43 +0000 (18:32 +0000)]
r18560: * Add in the winreg and initshutdown IDL files
* rename PI_SHUTDOWN from include/smb.h to PI_INITSHUTDOWN
  for compatibility with pidl libndr output
(This used to be commit 23a882861311d9d6ca45af1bfcc90d05846ba3a9)

12 years agor18557: If you've set security=ads, do the DNS queries first.
Jeremy Allison [Fri, 15 Sep 2006 16:03:11 +0000 (16:03 +0000)]
r18557: If you've set security=ads, do the DNS queries first.
Doing otherwise means site support doesn't work correctly.
(This used to be commit 06a75f3b935b30c60ab4690634b26cdcd7f02b90)

12 years agor18556: Implement "net sam policy", thanks to Karolin Seeger <>.
Volker Lendecke [Fri, 15 Sep 2006 15:27:13 +0000 (15:27 +0000)]
r18556: Implement "net sam policy", thanks to Karolin Seeger <>.

(This used to be commit da22aa7021d42a940d8f2151770fedbd2abdb63a)

12 years agor18552: Ensure the sitename matches before we SAF store a DC in ADS mode.
Jeremy Allison [Fri, 15 Sep 2006 14:18:52 +0000 (14:18 +0000)]
r18552: Ensure the sitename matches before we SAF store a DC in ADS mode.
(This used to be commit 03e1078b459531af5a2336b584b3c886c5dd1e29)

12 years agor18551: Implement a 30 seconds from startup, during which we
Jeremy Allison [Fri, 15 Sep 2006 14:05:28 +0000 (14:05 +0000)]
r18551: Implement a 30 seconds from startup, during which we
try hard to connect a DC even if we might be offline.
(This used to be commit a9f115140700487767bafa058db744eea5ee8f77)

12 years agor18547: Add in fixes to mangling dir code - ensure don't
Jeremy Allison [Fri, 15 Sep 2006 09:06:36 +0000 (09:06 +0000)]
r18547: Add in fixes to mangling dir code - ensure don't
look in the paths for wcard - always read directly
from incoming packet.
(This used to be commit 3745a1af4ea9262fcda28931539fa6ab4c9060d1)

12 years agor18543: Fix Coverity ID#312
Volker Lendecke [Fri, 15 Sep 2006 06:14:50 +0000 (06:14 +0000)]
r18543: Fix Coverity ID#312
(This used to be commit 763cbe924b78b206985db6552e20cb4830446d35)

12 years agor18534: Fix grammar
Simo Sorce [Thu, 14 Sep 2006 18:07:59 +0000 (18:07 +0000)]
r18534: Fix grammar
(This used to be commit 6c9b80bde39be7feb15f0fab4024a1de2980f4c1)

12 years agor18533: Ensure we clear out the failed connection cache for an entire
Jeremy Allison [Thu, 14 Sep 2006 16:37:13 +0000 (16:37 +0000)]
r18533: Ensure we clear out the failed connection cache for an entire
domain when going back online.
(This used to be commit c7e4c8d0b4d109ec67d4424dd446b74b55246c72)

12 years agor18530: typos
Simo Sorce [Thu, 14 Sep 2006 16:33:47 +0000 (16:33 +0000)]
r18530: typos
(This used to be commit 8c5c4959ede04e1cdbfe65beeee1f67ac0a93753)

12 years agor18529: warn the user that putting the machine host name on the
Simo Sorce [Thu, 14 Sep 2006 16:29:07 +0000 (16:29 +0000)]
r18529: warn the user that putting the machine host name on the line in /etc/hosts is not ok for Kerberos.
(This used to be commit 85126391e11006514af8e6c6b88eb7fa21abf49a)

12 years agor18527: Janitor for Jeremy ;-)
Volker Lendecke [Thu, 14 Sep 2006 16:02:58 +0000 (16:02 +0000)]
r18527: Janitor for Jeremy ;-)
(This used to be commit d72ba9ed1288e7f498a64c96dd6aa04bda59c8b2)

12 years agor18526: Use generated server for unixinfo RPC interface.
Jelmer Vernooij [Thu, 14 Sep 2006 14:51:16 +0000 (14:51 +0000)]
r18526: Use generated server for unixinfo RPC interface.
(This used to be commit a5c0606d7667506fdc64776e32d4b3508195a199)

12 years agor18525: Be a little less agressive about going back online when requested.
Jeremy Allison [Thu, 14 Sep 2006 14:26:33 +0000 (14:26 +0000)]
r18525: Be a little less agressive about going back online when requested.
(This used to be commit 9a0066278c30b123eeaed8213294b6d81a339524)

12 years agor18519: Copy over the Samba4 code to figure out options for the named initializers.
Volker Lendecke [Thu, 14 Sep 2006 11:58:22 +0000 (11:58 +0000)]
r18519: Copy over the Samba4 code to figure out options for the named initializers.

(This used to be commit 1786c28cc353e2ba70abe2750b9ef804cec84bf0)

12 years agor18512: Add krb5conf file environment to debug statement.
Günther Deschner [Thu, 14 Sep 2006 10:21:46 +0000 (10:21 +0000)]
r18512: Add krb5conf file environment to debug statement.

(This used to be commit 398f368c8a2df36d522583c733f7c22cac2f2059)

12 years agor18511: Ops, fix the build.
Günther Deschner [Thu, 14 Sep 2006 10:11:22 +0000 (10:11 +0000)]
r18511: Ops, fix the build.

(This used to be commit 20de0b4823abb59518b7ffb495120494e705df7a)

12 years agor18510: Protect against storing null-sids in the winbind cache.
Günther Deschner [Thu, 14 Sep 2006 10:08:36 +0000 (10:08 +0000)]
r18510: Protect against storing null-sids in the winbind cache.

(This used to be commit b04c8d46efc67e013b976e0ba1be558b70a1f899)

12 years agor18509: We must always canonicalise the usernames to be UPPERCASE DOMAIN,
Jeremy Allison [Thu, 14 Sep 2006 09:58:20 +0000 (09:58 +0000)]
r18509: We must always canonicalise the usernames to be UPPERCASE DOMAIN,
lowercase username. We cache names as keys in this form, and we weren't
always returning this....
(This used to be commit 205aa2b70d647460ca5a273caad7717312f53aab)

12 years agor18508: A query for the LDAP schema can never be done anonymously against AD.
Günther Deschner [Thu, 14 Sep 2006 09:44:48 +0000 (09:44 +0000)]
r18508: A query for the LDAP schema can never be done anonymously against AD.

(This used to be commit 8bb6e82f02044a715dbeee020bcc4a01a83c4a64)

12 years agor18507: Added debug log for returned username.
Jeremy Allison [Thu, 14 Sep 2006 09:27:10 +0000 (09:27 +0000)]
r18507: Added debug log for returned username.
(This used to be commit 7644fa70ba4f7c88d887930e23b5ee2e1632473b)

12 years agor18506: Fix online requests to cause an immediate DC connection.
Jeremy Allison [Thu, 14 Sep 2006 09:11:30 +0000 (09:11 +0000)]
r18506: Fix online requests to cause an immediate DC connection.
(This used to be commit 03b1699fa7d94fd637ff8c3bd2c59358673d2607)

12 years agor18487: Add NULL checks
Jelmer Vernooij [Wed, 13 Sep 2006 17:39:21 +0000 (17:39 +0000)]
r18487: Add NULL checks
(This used to be commit 3df11307f8ca05e4f7182522d835911f0768e9eb)

12 years agor18484: Start some cleanup on pam_winbind's syslogging:
Günther Deschner [Wed, 13 Sep 2006 16:39:52 +0000 (16:39 +0000)]
r18484: Start some cleanup on pam_winbind's syslogging:

* as openlog() is non-reentrant and pam_winbind thereby overrides the
  syslog settings of the calling application, directly call syslog (or
  pam_vsyslog if available)

* support the PAM_SILENT flag to avoid any log messages beeing created

(This used to be commit 0f7e37ffc4759a4e29f63ab83f39ddb31c8240f6)

12 years agor18483: Ensure all pdb_XXX calls are wrapped in become_root()/unbecome_root()
Jeremy Allison [Wed, 13 Sep 2006 16:30:40 +0000 (16:30 +0000)]
r18483: Ensure all pdb_XXX calls are wrapped in become_root()/unbecome_root()
pairs. Should fix bug #4097.
(This used to be commit f787b9d156992e0069860cb1ab829970cb69eb81)

12 years agor18481: Use pidl-generated server side code for dfs.
Jelmer Vernooij [Wed, 13 Sep 2006 16:28:25 +0000 (16:28 +0000)]
r18481: Use pidl-generated server side code for dfs.
(This used to be commit 3f337c104d42321595161d0283b39357df252a8e)

12 years agor18480: Doh ! Double-free of hostnameDN.
Jeremy Allison [Wed, 13 Sep 2006 16:21:48 +0000 (16:21 +0000)]
r18480: Doh ! Double-free of hostnameDN.
(This used to be commit f8984fa8b706bb76559e447b30a201e1cc2871b6)

12 years agor18476: Protect ourselves from bad cached creds a little
Jeremy Allison [Wed, 13 Sep 2006 14:54:55 +0000 (14:54 +0000)]
r18476: Protect ourselves from bad cached creds a little
better - don't just panic - delete them.
(This used to be commit 4c54b75076442d239ae374b236c6f33aafece981)

12 years agor18473: Once we go online, trigger a "get krb5 ticket event"
Jeremy Allison [Wed, 13 Sep 2006 13:55:19 +0000 (13:55 +0000)]
r18473: Once we go online, trigger a "get krb5 ticket event"
immediately if we were waiting on one.
(This used to be commit 6dc8f9042f057e1f9aff46042a0fe697cb8a912c)

12 years agor18469: Use new pidl-generated DFS client code.
Jelmer Vernooij [Wed, 13 Sep 2006 13:42:23 +0000 (13:42 +0000)]
r18469: Use new pidl-generated DFS client code.
(This used to be commit e277fb067b1a12d816c8a066839751c1824d27bb)

12 years agor18467: Some sites allow an account to be deleted, but not
Jeremy Allison [Wed, 13 Sep 2006 13:28:42 +0000 (13:28 +0000)]
r18467: Some sites allow an account to be deleted, but not
disabled. Cope with both - print appropriate messages.
(This used to be commit 2c003a4463ff59c477fa2558f869444cfa75e3a8)

12 years agor18466: Attempt to fix the AIX build
Volker Lendecke [Wed, 13 Sep 2006 13:02:51 +0000 (13:02 +0000)]
r18466: Attempt to fix the AIX build
(This used to be commit 1398425067d77d90ecf2ed4c17a12d643f7f5a88)

12 years agor18464: Solaris has LDAP_SCOPE_ONELEVEL. Linux seems to have it as well.
Volker Lendecke [Wed, 13 Sep 2006 11:40:21 +0000 (11:40 +0000)]
r18464: Solaris has LDAP_SCOPE_ONELEVEL. Linux seems to have it as well.

Fix a C++ compat warning.

(This used to be commit 351e583f66714562eca1f40429bfee70f06d281c)

12 years agor18457: Argl :-)
Volker Lendecke [Wed, 13 Sep 2006 10:12:55 +0000 (10:12 +0000)]
r18457: Argl :-)
(This used to be commit cafaf5a37cb0ee41829cce95d2d3f2619d5c2744)

12 years agor18453: Attempt to fix the non-ldap build
Volker Lendecke [Wed, 13 Sep 2006 10:03:27 +0000 (10:03 +0000)]
r18453: Attempt to fix the non-ldap build
(This used to be commit 86db85423027d34cb053fc068159ddd2226e90ec)

12 years agor18449: Attempt to fix the build on non-linux platforms: Many of those don't have
Volker Lendecke [Wed, 13 Sep 2006 09:32:24 +0000 (09:32 +0000)]
r18449: Attempt to fix the build on non-linux platforms: Many of those don't have
strtoull. This is a copy of the stuff in samba4 libreplace, which is GPL. I
hope it is ok to copy&paste it into a GPL file. Tridge, we could also create a
replace_lpgl.c if needed.

(This used to be commit f8346687d950ed643e8fa7d0b1a9c27f2880cc85)

12 years agor18446: Add the ldap 'leave domain' code - call this as
Jeremy Allison [Wed, 13 Sep 2006 09:03:42 +0000 (09:03 +0000)]
r18446: Add the ldap 'leave domain' code - call this as
a non-fatal error path if the 'disable machine
account' code succeeded.
(This used to be commit f47bffa21ec1caf5ec3a6ec77af801df0b63d83a)

12 years agor18429: fix a regression renaming local group introduced by trying to handle renames...
Gerald Carter [Tue, 12 Sep 2006 18:02:33 +0000 (18:02 +0000)]
r18429: fix a regression renaming local group introduced by trying to handle renames to the same name
(This used to be commit 4faa5004fb7e5814bf8a97cfe8d0b443f0acdb8d)

12 years agor18425: Fix ads_ntstatus(). LDAP_SUCCESS should really map to NT_STATUS_OK.
Günther Deschner [Tue, 12 Sep 2006 14:45:24 +0000 (14:45 +0000)]
r18425: Fix ads_ntstatus(). LDAP_SUCCESS should really map to NT_STATUS_OK.

(This used to be commit 8ab214956ef11ff0b1532713cff65c17d2439570)

12 years agor18422: Use LDAPMessage in idmap_ad as well.
Günther Deschner [Tue, 12 Sep 2006 08:27:27 +0000 (08:27 +0000)]
r18422: Use LDAPMessage in idmap_ad as well.

(This used to be commit 533f764084e2feb33570a8dee98eaac636652c7b)

12 years agor18413: Based on the new torture test I added in samba4 it turns out
Simo Sorce [Tue, 12 Sep 2006 02:26:32 +0000 (02:26 +0000)]
r18413: Based on the new torture test I added in samba4 it turns out
the flags determines what kind of share is this.
I suppose 0x80000000 means something like (legacy) as it will
fail for any share name longer then 13 chars (same size accepted
for old RAP calls that come from pre NT OSs.

let me know if you want me to commit this to 3_0_23

(This used to be commit f09f8b2d820b10679f3e9cf80749da0a35f5ce6a)

12 years agor18411: Getting a zero length read is common. Don't log at
Jeremy Allison [Tue, 12 Sep 2006 00:46:35 +0000 (00:46 +0000)]
r18411: Getting a zero length read is common. Don't log at
debug level zero.
(This used to be commit e23caeb7b57b0b1bbc2f8b6abf34166f271a88fa)

12 years agor18405: Now that POLICY_HND == struct policy_handle, we can
Gerald Carter [Mon, 11 Sep 2006 22:09:29 +0000 (22:09 +0000)]
r18405: Now that POLICY_HND == struct policy_handle, we can
make rpccli_lsa_close() a real one line wrapper for

I'm still keeping the wrapper for now because I'm not sure
what we will do about a usable client API.  I don't think
calling the autogenerated client code directly is a good idea
as the IDL is still evolving.
(This used to be commit 47f0c71218ade18cb94b48661f064e8956e06096)

12 years agor18404: * swap from POLICY_HND to the struct policy_handle from ndr/misc.h
Gerald Carter [Mon, 11 Sep 2006 22:02:34 +0000 (22:02 +0000)]
r18404: * swap from POLICY_HND to the struct policy_handle from ndr/misc.h
* move OUR_HANDLE macro to include/rpc_misc.h
(This used to be commit 2b37079af2f569df7a58878150a61980c6fe06ee)

12 years agor18403: Revert until we get this sorted out correctly.
Jeremy Allison [Mon, 11 Sep 2006 21:48:30 +0000 (21:48 +0000)]
r18403: Revert until we get this sorted out correctly.
(This used to be commit d0fdd5eb1e0c8bf135c267d4ff8183899345beaa)

12 years agor18402: Comment and (hopefully) fix remote command completion for smbclient.
Volker Lendecke [Mon, 11 Sep 2006 21:33:53 +0000 (21:33 +0000)]
r18402: Comment and (hopefully) fix remote command completion for smbclient.

Fix Bug ID 4084.

(This used to be commit 0baa3fcfa6b7d39d0f490ad0682042706f2518f2)

12 years agor18398: Fix bug #4095 - username composed into domain\user
Jeremy Allison [Mon, 11 Sep 2006 21:06:44 +0000 (21:06 +0000)]
r18398: Fix bug #4095 - username composed into domain\user
twice in spnego path. Jerry please check.
(This used to be commit e872bacf2850cfb66be1c57be40484fe8e4c2da5)

12 years agor18397: Change rpccli_lsa_close() as a wrapper for the autogenerated
Gerald Carter [Mon, 11 Sep 2006 20:07:35 +0000 (20:07 +0000)]
r18397: Change rpccli_lsa_close() as a wrapper for the autogenerated
(This used to be commit 365c75603d9130f46dd40ab46e14f3c91c687c65)

12 years agor18396: regenerate unixinfo files after metze changes to the IDL
Gerald Carter [Mon, 11 Sep 2006 20:06:55 +0000 (20:06 +0000)]
r18396: regenerate unixinfo files after metze changes to the IDL
(This used to be commit d2fe3eab54d01fa58e92b02464aa803952135c46)

12 years agor18395: have the ndr layer alloc outgoing structure members for us
Gerald Carter [Mon, 11 Sep 2006 20:00:00 +0000 (20:00 +0000)]
r18395: have the ndr layer alloc outgoing structure members for us
(This used to be commit 4fb35eeb44d434b04282c41e98c4a5767e1a8647)

12 years agor18394: get the lsa client code to link
Gerald Carter [Mon, 11 Sep 2006 19:33:27 +0000 (19:33 +0000)]
r18394: get the lsa client code to link
(This used to be commit 96e412a04cedc4c361c08e0ed1d141f3b018728b)

12 years agor18393: get the data size and not offset when initializing a data blob from a prs...
Gerald Carter [Mon, 11 Sep 2006 19:32:55 +0000 (19:32 +0000)]
r18393: get the data size and not offset when initializing a data blob from a prs structure
(This used to be commit 878fd68dfcb237f5332efcf48a3891abcc9ad53c)

12 years agor18390: give a better error code
Stefan Metzmacher [Mon, 11 Sep 2006 16:40:18 +0000 (16:40 +0000)]
r18390: give a better error code

(This used to be commit b2709f4fe529e89fcabfa3fc2ff27e09a192b3b6)

12 years agor18387: remove echo of pidl command line (was used for debugging)
Gerald Carter [Mon, 11 Sep 2006 15:55:44 +0000 (15:55 +0000)]
r18387: remove echo of pidl command line (was used for debugging)
(This used to be commit 848edce91288750881f538e1dd8ed4220047af6f)

12 years agor18380: the panic action command needs to be different in samba4
Stefan Metzmacher [Mon, 11 Sep 2006 12:46:13 +0000 (12:46 +0000)]
r18380: the panic action command needs to be different in samba4

samba4 uses %PID% where samba3 uses %d

(This used to be commit 4424aebdcef951b23e28041faa201ff7c95fa144)

12 years agor18379: make the gdb_backtrace executable
Stefan Metzmacher [Mon, 11 Sep 2006 11:49:32 +0000 (11:49 +0000)]
r18379: make the gdb_backtrace executable

(This used to be commit f4023dc39e97bf8b1d1642f7eb0e8cb00557aa7f)

12 years agor18373: copy over configure.developer from samba4 which adds
Stefan Metzmacher [Mon, 11 Sep 2006 08:16:42 +0000 (08:16 +0000)]
r18373: copy over configure.developer from samba4 which adds
-C --enable-socket-wrapper

(This used to be commit 346bcd756c8ffb4bd53c98c6f0a600ff3486613e)

12 years agor18369: I've got a sniff where NT4 sends just a single byte after the 516 byte
Volker Lendecke [Mon, 11 Sep 2006 07:55:51 +0000 (07:55 +0000)]
r18369: I've got a sniff where NT4 sends just a single byte after the 516 byte
password blob, it seems that pw_len is just a uint8 instead of uint16.

This might also be interesting for Samba4's samr.idl.

(This used to be commit 68ded4ba07703a20b046e4a58e7a746a78fcedf5)

12 years agor18313: Nobody said "no" (yet.... gd?), so commit it:
Volker Lendecke [Sat, 9 Sep 2006 22:27:06 +0000 (22:27 +0000)]
r18313: Nobody said "no" (yet.... gd?), so commit it:

Remove the account_policy_migrated() thingy, and make cache_account_policy_set
use gencache. Account policies are now handled like groups and users are with
respect to "passdb backend".

(This used to be commit fa8b2e2a585ab0c00a5fbde7aa790043261caf2e)

12 years agor18312: Change gencache_get slightly: Delete expired keys, and only strdup the value
Volker Lendecke [Sat, 9 Sep 2006 21:40:47 +0000 (21:40 +0000)]
r18312: Change gencache_get slightly: Delete expired keys, and only strdup the value
if a valid entry was found. The newer calls got the latter one wrong, change
the older calls.

(This used to be commit 554e68887bc84510690226c9b07a872e7a282abe)

12 years agor18311: Simplify gencache_get by using strtol instead of sscanf
Volker Lendecke [Sat, 9 Sep 2006 21:31:56 +0000 (21:31 +0000)]
r18311: Simplify gencache_get by using strtol instead of sscanf
(This used to be commit f6497adac674f9e5089a2e54ead07596e568a936)