ira/wip.git
16 years agor13525: This is only a cleanup to have the memset() and SAFE_FREE() only one
Lars Müller [Thu, 16 Feb 2006 16:45:58 +0000 (16:45 +0000)]
r13525: This is only a cleanup to have the memset() and SAFE_FREE() only one
time in the code.

Even if we now have an additional if statement after the free I prefer
this solution in opposite to the duplicated code we had before.
(This used to be commit 4272419b1146b1c03e070655f3a31d027c00ad20)

16 years agor13524: Add -t|--password-from-stdin option to pdbedit as we had with Samba 2.2.
Lars Müller [Thu, 16 Feb 2006 16:22:44 +0000 (16:22 +0000)]
r13524: Add -t|--password-from-stdin option to pdbedit as we had with Samba 2.2.

This fixes bug #1386.

The initial changes had been made by Carsten Höger <choeger at
open-xhange dot com> for Samba 2.2 while being at SuSE. *sigh*

To not duplicate code from smbpasswd in pdbedit stdin_new_passwd() and
get_pass() are moved from smbpasswd to utils/passwd_util.c.
(This used to be commit dbdc5ba497c6010dbad47c9d77fc8bec5557a328)

16 years agor13523: Fix indent.
Günther Deschner [Thu, 16 Feb 2006 15:51:04 +0000 (15:51 +0000)]
r13523: Fix indent.

Guenther
(This used to be commit 85435bf96114679253551a3e6c5db046b8320611)

16 years agor13522: Add SAMR_GET_USRDOM_PWINFO client-side.
Günther Deschner [Thu, 16 Feb 2006 13:18:17 +0000 (13:18 +0000)]
r13522: Add SAMR_GET_USRDOM_PWINFO client-side.

Guenther
(This used to be commit 290a581b7567eab82b18fbadae9aa2ab29e95069)

16 years agor13521: Implement LOOKUPNAME3 and 4.
Jeremy Allison [Thu, 16 Feb 2006 01:06:21 +0000 (01:06 +0000)]
r13521: Implement LOOKUPNAME3 and 4.
Jeremy.
(This used to be commit 6ec0e9124a1a7b19c9853b8e26075cbbb8751f10)

16 years agor13519: Fix the credentials chaining across netlogon pipe disconnects.
Jeremy Allison [Wed, 15 Feb 2006 23:15:55 +0000 (23:15 +0000)]
r13519: Fix the credentials chaining across netlogon pipe disconnects.
I mean it this time :-).
Jeremy.
(This used to be commit 80f4868944d349015d2b64c2414b06466a8194aa)

16 years agor13517: Fix typo -- thanks to Karolin Seeger <ks@sernet.de>
Volker Lendecke [Wed, 15 Feb 2006 21:54:58 +0000 (21:54 +0000)]
r13517: Fix typo -- thanks to Karolin Seeger <ks@sernet.de>
(This used to be commit d0efb435e51ee4d5454b55aee1596355ecc4a2c6)

16 years agor13515: Make sure to store the correct domain name in the server affinity cache.
Gerald Carter [Wed, 15 Feb 2006 18:45:25 +0000 (18:45 +0000)]
r13515: Make sure to store the correct domain name in the server affinity cache.
(This used to be commit a918e4ac2426d4cb3cd526c4fad7480b832e6a12)

16 years agor13514: fix small glitch in the update procedure from /var/cache/samba mishap
Gerald Carter [Wed, 15 Feb 2006 18:41:35 +0000 (18:41 +0000)]
r13514: fix small glitch in the update procedure from /var/cache/samba mishap
(This used to be commit 3857d3693a2c14917df88f4338ac9b78abba9ca1)

16 years agor13513: Changing defaults:
Gerald Carter [Wed, 15 Feb 2006 18:27:06 +0000 (18:27 +0000)]
r13513: Changing defaults:

  * enable privileges = yes
  * enable asu support = no

Remove unused function after the tdbsam rewrite.
(This used to be commit 5385a01ee19d9c7e00b4dd7a6ab3ec1d4b03b558)

16 years agor13512: Rewrite tdbsam code to use a reference count based open/close
Gerald Carter [Wed, 15 Feb 2006 18:26:06 +0000 (18:26 +0000)]
r13512: Rewrite tdbsam code to use a reference count based open/close
on the tdb file.  This allow recusive calls to succeed
without complaining about failed opens since a tdb can
only be opened once per process.  We probably still need to backport
the transaction support from Samba 4 here though.
(This used to be commit 94c37e06522bfc1753cc8f3c6c7bd4329587007e)

16 years agor13511: Fix bug in the samr dispinfo enumeration code.
Gerald Carter [Wed, 15 Feb 2006 18:24:16 +0000 (18:24 +0000)]
r13511: Fix bug in the samr dispinfo enumeration code.
Make sure to associate the DOMAIN dispinfo cache
with a User/Group SAMR handle (not the SID of the user or group).
Ensure that enumeration after deleting a user works.
(This used to be commit 7967f89caa17ea93cb7e9d8695f1904ccb9a2864)

16 years agor13510: plug memory leak in WINS server code.
Gerald Carter [Wed, 15 Feb 2006 18:22:00 +0000 (18:22 +0000)]
r13510: plug memory leak in WINS server code.
(This used to be commit 381c327a65489bf8b0fd4935662ca1df6f9e1183)

16 years agor13509: remove unnecessary sql flags
Gerald Carter [Wed, 15 Feb 2006 18:21:13 +0000 (18:21 +0000)]
r13509: remove unnecessary sql flags
(This used to be commit c3702e804a74276ee53eb73f2d9b1fa9d3874b48)

16 years agor13502: Fix error messages for usershares when smbd is not
Jeremy Allison [Wed, 15 Feb 2006 02:07:14 +0000 (02:07 +0000)]
r13502: Fix error messages for usershares when smbd is not
running. More generic error return cleanup in libsmb/
needs doing (everything returning NTSTATUS not BOOL).
Jeremy
(This used to be commit 654bb9853b450c5d509d182f67ec26ac320fd590)

16 years agor13500: Fix ordering of FD_* arguments.
James Peach [Wed, 15 Feb 2006 01:05:06 +0000 (01:05 +0000)]
r13500: Fix ordering of FD_* arguments.
(This used to be commit ed619421de024c44f5f05b3c03bb5311ce73830f)

16 years agor13498: Fix the kernel oplocks code for IRIX. Should fix #3515.
Jeremy Allison [Tue, 14 Feb 2006 23:00:39 +0000 (23:00 +0000)]
r13498: Fix the kernel oplocks code for IRIX. Should fix #3515.
Jeremy.
(This used to be commit 006cf9c3654e7f18e01b75a5fe87798df862d26a)

16 years agor13497: Fix #3508 from jason@ncac.gwu.edu
Jeremy Allison [Tue, 14 Feb 2006 20:26:38 +0000 (20:26 +0000)]
r13497: Fix #3508 from jason@ncac.gwu.edu
Jeremy.
(This used to be commit a28bc614a0eb8409a98b254b32ad17c50c2eec0e)

16 years agor13495: Derell, I'm removing that double setup_logging(), just a typo.
Günther Deschner [Tue, 14 Feb 2006 12:35:56 +0000 (12:35 +0000)]
r13495: Derell, I'm removing that double setup_logging(), just a typo.

Guenther
(This used to be commit c0d91f9d19b33995237847389e4c37e086938b9e)

16 years agor13494: Merge the stuff I've done in head the last days.
Volker Lendecke [Mon, 13 Feb 2006 17:08:25 +0000 (17:08 +0000)]
r13494: Merge the stuff I've done in head the last days.

Volker
(This used to be commit bb40e544de68f01a6e774753f508e69373b39899)

16 years agor13493: module_name and module_location are the same string. Fix a valgrind
Volker Lendecke [Mon, 13 Feb 2006 16:48:24 +0000 (16:48 +0000)]
r13493: module_name and module_location are the same string. Fix a valgrind
error.

Volker
(This used to be commit 5a92df31d69ff7b0f2de6564d644949c2906c8f1)

16 years agor13492: As noone objected on the mailing-list:
Günther Deschner [Mon, 13 Feb 2006 15:12:22 +0000 (15:12 +0000)]
r13492: As noone objected on the mailing-list:

Fix parse_domain_user to fail when splitting a full name like "DOM\user"
when "winbind use default domain" and "winbind trusted domains only" are
not enabled.

This allows pam_winbind to behave correctly when more modules are
stacked in the "account" or "password" PAM facility. pam_winbindd calls
WINBINDD_GETPWNAM which can decide whether or not a user is a winbind
user and return correct PAM error codes.

Guenther
(This used to be commit e6d52c1e9d8cec7be6d552c2a67a392df21c3ec9)

16 years agor13491: Fix bug # 3498 from jason@ncac.gwu.edu. Unsigned comparison
Jeremy Allison [Mon, 13 Feb 2006 13:36:22 +0000 (13:36 +0000)]
r13491: Fix bug # 3498 from jason@ncac.gwu.edu. Unsigned comparison
with < 0.
Jeremy.
(This used to be commit 9a083837070c6540a9b92f6a055f8ecc23a32a49)

16 years agor13489: Fix #3496 from jason@ncac.gwu.edu. Variable set but never used.
Jeremy Allison [Mon, 13 Feb 2006 13:25:36 +0000 (13:25 +0000)]
r13489: Fix #3496 from jason@ncac.gwu.edu. Variable set but never used.
Jeremy.
(This used to be commit 4204794cc7c5e2671259652879c33f539d26958c)

16 years agor13486: Two more -- fix bug 3503
Volker Lendecke [Mon, 13 Feb 2006 04:58:13 +0000 (04:58 +0000)]
r13486: Two more -- fix bug 3503
(This used to be commit 62b02a68438e0ff1119e68347b1ac3495572fa8a)

16 years agor13484: Add missing semi-colon.
James Peach [Mon, 13 Feb 2006 04:29:42 +0000 (04:29 +0000)]
r13484: Add missing semi-colon.
(This used to be commit a78d94f539e41ac384e09cd6e44cb611dd8e1570)

16 years agor13482: Push the FAM notification file descriptor into the select
James Peach [Mon, 13 Feb 2006 04:07:15 +0000 (04:07 +0000)]
r13482: Push the FAM notification file descriptor into the select
set to avoid unnecessary polling.
(This used to be commit 1dce945ccbba25092cf54890301c8f78f8aede33)

16 years agor13477: Fix code before declaration
Volker Lendecke [Sun, 12 Feb 2006 17:49:04 +0000 (17:49 +0000)]
r13477: Fix code before declaration
(This used to be commit c15f1d553f03ad1ed4e1d52b8e46c52202bc3a83)

16 years agor13475: Fix erroneous initialization caused by my renaming types.
Jeremy Allison [Sun, 12 Feb 2006 16:45:50 +0000 (16:45 +0000)]
r13475: Fix erroneous initialization caused by my renaming types.
Jeremy.
(This used to be commit e8e2fc79b4afd6625e1d50e23b31eb49f67526d9)

16 years agor13473: Back port r13470, r13471, r13472 from Samba4. Thanks Andrew:
Jeremy Allison [Sun, 12 Feb 2006 16:44:30 +0000 (16:44 +0000)]
r13473: Back port r13470, r13471, r13472 from Samba4. Thanks Andrew:
-----------------------------------
Thanks to a report from VL:

We were causing mayhem by weakening the keys at the wrong point in time.

I think this is the correct place to do it.  The session key for SMB
signing, and the 'smb session key' (used for encrypting password sets)
is never weakened.

The session key used for bulk data encryption/signing is weakened.

This also makes more sense, when we look at the NTLM2 code.

Andrew Bartlett
-----------------------------------
With more 'try all options' testing, I found this 'simple' but in the
NTLM2 signing code.

Andrew Bartlett
-----------------------------------
After Volker's advise, try every combination of parameters.  This
isn't every parameter on NTLMSSP, but it is most of the important
ones.

This showed up that we had the '128bit && LM_KEY' case messed up.
This isn't supported, so we must look instead at the 56 bit flag.

Andrew Bartlett
-----------------------------------

We should now try retesting with NT4. This should be standalone
enough to port into a SAMBA_3_0_RELEASE branch fix.

Jeremy.
(This used to be commit b9b8cd1752aeab049983c1a6038edf2231ec10a4)

16 years agor13460: by popular demand....
Gerald Carter [Sat, 11 Feb 2006 21:27:08 +0000 (21:27 +0000)]
r13460: by popular demand....

* remove pdb_context data structure
* set default group for DOMAIN_RID_GUEST user as RID 513 (just
  like Windows)
* Allow RID 513 to resolve to always resolve to a name
* Remove auto mapping of guest account primary group given the
  previous 2 changes
(This used to be commit 7a2da5f0cc05c1920c664c9a690a23bdf854e285)

16 years agor13458: Add parsing functions - but stub internals for lookupnames3 and 4.
Jeremy Allison [Sat, 11 Feb 2006 05:36:27 +0000 (05:36 +0000)]
r13458: Add parsing functions - but stub internals for lookupnames3 and 4.
Jeremy.
(This used to be commit f1a362580ae37730dc8393a79f832aed5d0ea4be)

16 years agor13456: Add lsa_lookup_names2.
Jeremy Allison [Sat, 11 Feb 2006 04:25:06 +0000 (04:25 +0000)]
r13456: Add lsa_lookup_names2.
Jeremy.
(This used to be commit b57406c89feaf550f6c2d29ef0ed73a935908add)

16 years agor13455: Prepare to add lookupnames2.
Jeremy Allison [Sat, 11 Feb 2006 02:46:41 +0000 (02:46 +0000)]
r13455: Prepare to add lookupnames2.
Jeremy.
(This used to be commit 2274709587bd1f27bea2eacf633182f20cd07b1e)

16 years agor13451: Fix build warning.
Günther Deschner [Sat, 11 Feb 2006 00:08:57 +0000 (00:08 +0000)]
r13451: Fix build warning.

Guenther
(This used to be commit d27771ca1d046aa7fc0c15d410d9fe83da85428f)

16 years agor13449: Ensure we don't crash if no dc struct on pipe.
Jeremy Allison [Sat, 11 Feb 2006 00:04:39 +0000 (00:04 +0000)]
r13449: Ensure we don't crash if no dc struct on pipe.
Jeremy.
(This used to be commit a9e1d0f3b4fd7a0732a5023d0b4dcc2c4b1b03f8)

16 years agor13448: Fix the build (again).
Günther Deschner [Fri, 10 Feb 2006 23:54:45 +0000 (23:54 +0000)]
r13448: Fix the build (again).

Guenther
(This used to be commit 7eacb47660fdb4b0100a778062623ad74b755f34)

16 years agor13447: Added LSA_LOOKUPSIDS2 and LSA_LOOKUPSIDS3.
Jeremy Allison [Fri, 10 Feb 2006 23:52:53 +0000 (23:52 +0000)]
r13447: Added LSA_LOOKUPSIDS2 and LSA_LOOKUPSIDS3.
Jeremy.
(This used to be commit a164cfab420a2439dad8fd85f8b4d652087fa6b9)

16 years agor13445: We already made the decision whether to include the dominfo and
Günther Deschner [Fri, 10 Feb 2006 23:49:52 +0000 (23:49 +0000)]
r13445: We already made the decision whether to include the dominfo and
changereject.

Guenther
(This used to be commit 98d3c63e04e1317a0a2f100e89d9be65a98ecc7e)

16 years agor13444: Add REJECT_REASON_OTHER for samr_chgpasswd_user3
Günther Deschner [Fri, 10 Feb 2006 23:41:41 +0000 (23:41 +0000)]
r13444: Add REJECT_REASON_OTHER for samr_chgpasswd_user3

Guenther
(This used to be commit 58baf718be90d750f51cf51a25714fcdcd5679b7)

16 years agor13443: Fix the build.
Günther Deschner [Fri, 10 Feb 2006 23:23:10 +0000 (23:23 +0000)]
r13443: Fix the build.

Guenther
(This used to be commit 40a21776a7a16f3200e87c6564d9b6e8c481dd1e)

16 years agor13442: Implement samr_chgpasswd_user3 server-side.
Günther Deschner [Fri, 10 Feb 2006 23:09:00 +0000 (23:09 +0000)]
r13442: Implement samr_chgpasswd_user3 server-side.

Guenther
(This used to be commit f60eddc0a4dfe623e5f115533a62c03810fd5f38)

16 years agor13439: Fix NET_SAM_LOGON_EX.
Jeremy Allison [Fri, 10 Feb 2006 19:16:50 +0000 (19:16 +0000)]
r13439: Fix NET_SAM_LOGON_EX.
Jeremy.
(This used to be commit 9437ffc84f4d924ab67f3e16ef507d2aeeeb5f34)

16 years agor13436: Add in NET_SAM_LOGON_EX. Still needs testing.
Jeremy Allison [Fri, 10 Feb 2006 18:51:18 +0000 (18:51 +0000)]
r13436: Add in NET_SAM_LOGON_EX. Still needs testing.
Jeremy
(This used to be commit f58d0ebf749ad6dab562e74e9fd2c16606183d6c)

16 years agor13434: Add stub for NET_SAM_LOGON_EX.
Jeremy Allison [Fri, 10 Feb 2006 18:05:55 +0000 (18:05 +0000)]
r13434: Add stub for NET_SAM_LOGON_EX.
Jeremy.
(This used to be commit 58544eb3c848e1dddd774270fbaae7d704a37b53)

16 years agor13433: Get ready to implement NET_SAM_LOGON_EX.
Jeremy Allison [Fri, 10 Feb 2006 17:55:44 +0000 (17:55 +0000)]
r13433: Get ready to implement NET_SAM_LOGON_EX.
Jeremy.
(This used to be commit 666b03b4a92800ed704b7f7e4b39f4e01ca47aee)

16 years agor13427: Fix ctime -> st_ctime.
Jeremy Allison [Fri, 10 Feb 2006 05:13:37 +0000 (05:13 +0000)]
r13427: Fix ctime -> st_ctime.
Jeremy.
(This used to be commit 95793d7e64d30190ebf917745c719f9c5a1b31e2)

16 years agor13425: Revert all the "clever" compiler options checks. They broke
James Peach [Fri, 10 Feb 2006 02:46:45 +0000 (02:46 +0000)]
r13425: Revert all the "clever" compiler options checks. They broke
the build on Solaris, AIX and S390. The fundamental problem is
that macros like AX_CFLAGS_IRIX_OPTION can spuriously succeed.
(This used to be commit 30122f61c35b1af977efd6e4727204c2e2e1c7a3)

16 years agor13424: Don't attempt to use cc -O2. This breaks the solaris build.
James Peach [Fri, 10 Feb 2006 02:26:46 +0000 (02:26 +0000)]
r13424: Don't attempt to use cc -O2. This breaks the solaris build.
(This used to be commit 341d554e2f7a117c7098633b24cb18c7ff25a011)

16 years agor13423: Write wrapper functions (and configure tests) so we can
Jeremy Allison [Fri, 10 Feb 2006 01:43:33 +0000 (01:43 +0000)]
r13423: Write wrapper functions (and configure tests) so we can
always assume we can get a struct timespec out of a stat
struct. This will allow us to portably move to nsec timestamps
on files and directories in the file server code in future.
Jeremy.
(This used to be commit 07132d8796a08aa71d6719cb07b5b2c999930632)

16 years agor13420: Support profile-guided optimisation in the build system. This is
James Peach [Thu, 9 Feb 2006 23:55:01 +0000 (23:55 +0000)]
r13420: Support profile-guided optimisation in the build system. This is
implemented for gcc 3.x, gcc 4.x and MIPSPro compilers.
(This used to be commit 5e57021723f091a33021c30557cace2b70acf172)

16 years agor13418: Formalise support for checking compiler options.
James Peach [Thu, 9 Feb 2006 23:04:38 +0000 (23:04 +0000)]
r13418: Formalise support for checking compiler options.
(This used to be commit eb3ba826ef465b95f9597043ee156ad9d7ca16a0)

16 years agor13417: Add .2 to the SONAME as version suffix if we link the nss modules on
Lars Müller [Thu, 9 Feb 2006 21:26:32 +0000 (21:26 +0000)]
r13417: Add .2 to the SONAME as version suffix if we link the nss modules on
linux.

Heads up: This might be required on other OS using glibc too.
(This used to be commit b28e43427b43994404f109ce7da467461af12200)

16 years agor13416: Remove superfluous -lc while linking libnss_wins.so and pam_winbind.so.
Lars Müller [Thu, 9 Feb 2006 21:21:34 +0000 (21:21 +0000)]
r13416: Remove superfluous -lc while linking libnss_wins.so and pam_winbind.so.
(This used to be commit e64134a8599364dc0fa298c7106a7ccf471c5322)

16 years agor13412: Don't use arbitrary uint32 size for uid and gid storage. Use
Jeremy Allison [Thu, 9 Feb 2006 18:18:51 +0000 (18:18 +0000)]
r13412: Don't use arbitrary uint32 size for uid and gid storage. Use
correct system size. Fixed a bug that was accidentally introduced
by use of uint32 - uid was stored twice, not uid and gid.
Jeremy.
(This used to be commit 89db006997588c6523ce8f2470d67f3136042256)

16 years agor13411: Sync with the latest fix I've made to package 3.0.21b
Simo Sorce [Thu, 9 Feb 2006 14:06:29 +0000 (14:06 +0000)]
r13411: Sync with the latest fix I've made to package 3.0.21b
(This used to be commit 46f9f7a6f0352329b2e57030b2af4bc0dc72c580)

16 years agor13410: Dump a netbootGUID as a GUID.
Günther Deschner [Thu, 9 Feb 2006 10:24:27 +0000 (10:24 +0000)]
r13410: Dump a netbootGUID as a GUID.

Guenther
(This used to be commit 9b19a68456c7b576750aaf64c178ba5323d9a95e)

16 years agor13409: No functional changes, just some DEBUG cleanup.
Günther Deschner [Thu, 9 Feb 2006 10:17:38 +0000 (10:17 +0000)]
r13409: No functional changes, just some DEBUG cleanup.

Guenther
(This used to be commit 286f6fc2339cf4ef232c16466b8dffdcddbe343f)

16 years agor13408: Remove C++ comments (# 3494)
Günther Deschner [Thu, 9 Feb 2006 10:09:32 +0000 (10:09 +0000)]
r13408: Remove C++ comments (# 3494)

Guenther
(This used to be commit cf86d4c9f0c48e7234945694a4722c35dd33657c)

16 years agor13407: Change the credentials code to be more like the Samba4 structure,
Jeremy Allison [Thu, 9 Feb 2006 07:03:23 +0000 (07:03 +0000)]
r13407: Change the credentials code to be more like the Samba4 structure,
makes fixes much easier to port. Fix the size of dc->sess_key to
be 16 bytes, not 8 bytes - only store 8 bytes in the inter-smbd
store in secrets.tdb though. Should fix some uses of the dc->sess_key
where we where assuming we could read 16 bytes.
Jeremy.
(This used to be commit 5b3c2e63c73fee8949108abe19ac7a448a033a7f)

16 years agor13399: Get closer to passing RPC-SCHANNEL test.
Jeremy Allison [Thu, 9 Feb 2006 00:23:40 +0000 (00:23 +0000)]
r13399: Get closer to passing RPC-SCHANNEL test.
Jeremy.
(This used to be commit 8ae70122b79fbe682c227ec2c4e5a72bf58d76de)

16 years agor13396: Add in userinfo26, re-enable userinfo25 - took the knowledge
Jeremy Allison [Wed, 8 Feb 2006 22:16:03 +0000 (22:16 +0000)]
r13396: Add in userinfo26, re-enable userinfo25 - took the knowledge
from Samba4 on how to decode the 532 byte password buffers.
Getting closer to passing samba4 RPC-SCHANNEL test.
Jeremy.
(This used to be commit 205db6968a26c43dec64c14d8053d8e66807086f)

16 years agor13394: Fix rpcclient to obey the -W parameter. Not that I *like* the smbclient
Volker Lendecke [Wed, 8 Feb 2006 19:28:25 +0000 (19:28 +0000)]
r13394: Fix rpcclient to obey the -W parameter. Not that I *like* the smbclient
solution, but it does this particular job... :-)

Volker
(This used to be commit df6d67cd10c0045f3c6f73381716300221cecf18)

16 years agor13393: Do not initialize the lp_svcctl_list() value since it is handled
Gerald Carter [Wed, 8 Feb 2006 15:09:09 +0000 (15:09 +0000)]
r13393: Do not initialize the lp_svcctl_list() value since it is handled
internally in services_db.c now.  This prevents internal services from
being listed twice (one internal and one external) when no
'svcctl list' parameter is explcitly set in smb.conf
(This used to be commit 6c4ede6cee7e1d25a6357e959972e8d390c27fe3)

16 years agor13392: check gcc version before trying 'make pch'. remove some historical actions
Gerald Carter [Wed, 8 Feb 2006 14:18:05 +0000 (14:18 +0000)]
r13392: check gcc version before trying 'make pch'.  remove some historical actions
(This used to be commit e0c4e5cfded7d22e37aab7c14d3c0fa4263e7983)

16 years agor13391: Only fall into password change when ACB_PWNOEXP is not set
Günther Deschner [Wed, 8 Feb 2006 11:57:38 +0000 (11:57 +0000)]
r13391: Only fall into password change when ACB_PWNOEXP is not set

(got it wrong the first time as administrator has this flag set by
default).

Guenther
(This used to be commit e9ccebf45a5db8964793084950fbb2c23b2469a3)

16 years agor13389: get_ldap_filter is only used once, make it static
Volker Lendecke [Wed, 8 Feb 2006 10:36:13 +0000 (10:36 +0000)]
r13389: get_ldap_filter is only used once, make it static
(This used to be commit d3b66fb8712e41a331ccfb0f52f187382769b41e)

16 years agor13386: Fix parsing of SAMR_Q_CONNECT_ANON.
Jeremy Allison [Wed, 8 Feb 2006 04:46:43 +0000 (04:46 +0000)]
r13386: Fix parsing of SAMR_Q_CONNECT_ANON.
Jeremy.
(This used to be commit 6f8334ad31ac773f5c13335f5d8c5bed62987466)

16 years agor13384: Adding in some more SuSE patches
Gerald Carter [Wed, 8 Feb 2006 04:11:08 +0000 (04:11 +0000)]
r13384: Adding in some more SuSE patches

* uninitialized-variables.diff
* samba-smbadduser.diff
* samba-implicit_decl.patch
(This used to be commit 064338c6f5644d1ceddf341d4ba5619a3d68ffa7)

16 years agor13383: pulling in swat-welcome patch from SuSE packaging
Gerald Carter [Wed, 8 Feb 2006 04:05:34 +0000 (04:05 +0000)]
r13383: pulling in swat-welcome patch from SuSE packaging
(This used to be commit 1b955bbf59e5b11014405d888d58fefbc055ad38)

16 years agor13382: added server affinity cache stores for 'net rpc join' and trusted domain...
Gerald Carter [Wed, 8 Feb 2006 04:03:47 +0000 (04:03 +0000)]
r13382: added server affinity cache stores for 'net rpc join' and trusted domain code
(This used to be commit 9eb743584d32cdb67e0512ac915c34565bce1c01)

16 years agor13379: Andrew correctly noted that this breaks -s. Not sure what to do...
Volker Lendecke [Tue, 7 Feb 2006 23:30:31 +0000 (23:30 +0000)]
r13379: Andrew correctly noted that this breaks -s. Not sure what to do...
(This used to be commit 5f9f772c2539112b17ebd13d7d3f4f7ab6fb141b)

16 years agor13378: Not sure what this breaks, but we have to do the popt processing after the
Volker Lendecke [Tue, 7 Feb 2006 22:38:29 +0000 (22:38 +0000)]
r13378: Not sure what this breaks, but we have to do the popt processing after the
lp_load, because otherwise the lp_load overwrites the -W setting again.

Volker
(This used to be commit c7cc625d6360c1df2e4465d1d5ae792ff63a80de)

16 years agor13377: Fix from Volker: Make offline authentication work with NT4 as well
Günther Deschner [Tue, 7 Feb 2006 17:55:17 +0000 (17:55 +0000)]
r13377: Fix from Volker: Make offline authentication work with NT4 as well
(handle no ACB_NORMAL flag and save name2sid as early as possible).

Guenther
(This used to be commit a04a5e40b774b7fe535e9cbbabddf94ee5578005)

16 years agor13376: break docs out to a separate package; cleanup /var/cache/samba -> /var/lib...
Gerald Carter [Tue, 7 Feb 2006 17:21:20 +0000 (17:21 +0000)]
r13376: break docs out to a separate package; cleanup /var/cache/samba -> /var/lib/samba
(This used to be commit 9cb372605cf0ccd7837e8fe71c597748a9d8ab24)

16 years agor13375: Match XP behaviour: Don't force 'Administrator' to change an expired
Günther Deschner [Tue, 7 Feb 2006 17:18:29 +0000 (17:18 +0000)]
r13375: Match XP behaviour: Don't force 'Administrator' to change an expired
password on logon. (this might be true for all domain admins as well).

Guenther
(This used to be commit 24c6b9fecb521380008cb44e6d987a6f495027dc)

16 years agor13374: new revision of the snprintf replace code
Simo Sorce [Tue, 7 Feb 2006 00:50:38 +0000 (00:50 +0000)]
r13374: new revision of the snprintf replace code

still missing a configure test to make us
substitute our snprintf to system one when
the system one does not have positional parameters support
(This used to be commit e9bcc24b13c0e264d1d4aaf31a56e38cb3fec830)

16 years agor13371: Remove an unused function
Volker Lendecke [Mon, 6 Feb 2006 22:19:30 +0000 (22:19 +0000)]
r13371: Remove an unused function
(This used to be commit dde8322b5c26b04222eefd3c1d450852f849079f)

16 years agor13368: I must write out 1000 times, "Don't use C++ reserved words..."
Jeremy Allison [Mon, 6 Feb 2006 18:03:57 +0000 (18:03 +0000)]
r13368: I must write out 1000 times, "Don't use C++ reserved words..."
Jeremy.
(This used to be commit b1ebc12b5043a7d7a85378f0d3f1d4f6cb83c411)

16 years agor13366: Add popt to the include path for examples/VFS. The modules themselves don't
Volker Lendecke [Mon, 6 Feb 2006 13:39:34 +0000 (13:39 +0000)]
r13366: Add popt to the include path for examples/VFS. The modules themselves don't
use that, but includes.h fails in environments where there's no system popt
around. As the modules don't need that anyway, porting the check whether to
use the system one or our own seems a bit overkill.

Thanks to Michael Adam <ma@SerNet.DE>.

Volker
(This used to be commit 04cbde59566f814cfba5a008e12496795544ad05)

16 years agor13364: Continue not enabling valgrind on 64-bit Linux (see also rev 8510).
James Peach [Mon, 6 Feb 2006 06:22:20 +0000 (06:22 +0000)]
r13364: Continue not enabling valgrind on 64-bit Linux (see also rev 8510).
(This used to be commit 13766b03e806528cdd34c9452f42ae4e71869671)

16 years agor13363: Honour the $(DESTDIR) Makefile variable when installing Python
Tim Potter [Mon, 6 Feb 2006 06:16:35 +0000 (06:16 +0000)]
r13363: Honour the $(DESTDIR) Makefile variable when installing Python
extensions.  Fix from Vladimir Lettiev.
(This used to be commit 7ca75d9060f7ae5a1fe0517ec6889f6bc940c6b2)

16 years agor13351: Fix copyright
Volker Lendecke [Sat, 4 Feb 2006 22:01:30 +0000 (22:01 +0000)]
r13351: Fix copyright
(This used to be commit 70114f509c821a4bc932ff76d9fc19a7d4ad1e84)

16 years agor13350: Implement rpccli_samr_set_domain_info. Weird that it was not around :-)
Volker Lendecke [Sat, 4 Feb 2006 21:44:57 +0000 (21:44 +0000)]
r13350: Implement rpccli_samr_set_domain_info. Weird that it was not around :-)

Implement 'net rpc shell account' -- An editor for account policies

nt_time_to_unix_abs changed its argument which to me seems wrong, and I could
not find a caller that depends on this. So I changed it. Applied some more
const in time.c.

Volker
(This used to be commit fc73690a7000d5a3f0f5ad34461c1f3a87edeac5)

16 years agor13343: More sql cleanup
Volker Lendecke [Sat, 4 Feb 2006 10:01:56 +0000 (10:01 +0000)]
r13343: More sql cleanup
(This used to be commit bd1be2388ebdc332c00289f10f0af17e6cd8b44a)

16 years agor13338: Remove the experimental pdb modules
Volker Lendecke [Sat, 4 Feb 2006 09:36:10 +0000 (09:36 +0000)]
r13338: Remove the experimental pdb modules
(This used to be commit a3bc4f51144bcd711ae1869d60a15d24be6ad992)

16 years agor13337: Attempt to fix the AIX build
Volker Lendecke [Sat, 4 Feb 2006 09:04:14 +0000 (09:04 +0000)]
r13337: Attempt to fix the AIX build
(This used to be commit b129b4f94f6ff1d963ac316cf180662f5cecf9f6)

16 years agor13331: No I didn't have to change the interface version...
Jeremy Allison [Sat, 4 Feb 2006 06:36:02 +0000 (06:36 +0000)]
r13331: No I didn't have to change the interface version...
Jeremy.
(This used to be commit 2aed5b36409e05ac25b4492669f47d50be988f2c)

16 years agor13329: Fix libsmbsharemodes.so to work with the stored delete token.
Jeremy Allison [Sat, 4 Feb 2006 06:31:04 +0000 (06:31 +0000)]
r13329: Fix libsmbsharemodes.so to work with the stored delete token.
Less trouble than I thought plus it didn't need an interface
change (thank goodness !).
Jeremy.
(This used to be commit dbe2572d1c713f46b0d1d0c405f88456c9336297)

16 years agor13327: Update install.html location & fix typo.
John Terpstra [Sat, 4 Feb 2006 05:42:29 +0000 (05:42 +0000)]
r13327: Update install.html location & fix typo.
(This used to be commit 77fb6998510ceab502548ea3b20541136b37b952)

16 years agor13326: fix bad path in RHEL spec file; going to have to rebuild Fedora packages
Gerald Carter [Sat, 4 Feb 2006 04:05:25 +0000 (04:05 +0000)]
r13326: fix bad path in RHEL spec file; going to have to rebuild Fedora packages
(This used to be commit 18800eab03b7b1c3cf6734b71f462f2fd7b8f24a)

16 years agor13322: Fix warning time_t != int.
Jeremy Allison [Fri, 3 Feb 2006 23:31:56 +0000 (23:31 +0000)]
r13322: Fix warning time_t != int.
Jeremy.
(This used to be commit 6196446a03abeb4100bac1721977488ae5843f42)

16 years agor13318: remove an unused file
Gerald Carter [Fri, 3 Feb 2006 22:42:49 +0000 (22:42 +0000)]
r13318: remove an unused file
(This used to be commit 5d373133cbed8fa40e3a9dcd08d27c35ddff96af)

16 years agor13316: Let the carnage begin....
Gerald Carter [Fri, 3 Feb 2006 22:19:41 +0000 (22:19 +0000)]
r13316: Let the carnage begin....
Sync with trunk as off r13315
(This used to be commit 17e63ac4ed8325c0d44fe62b2442449f3298559f)

16 years agor13314: This code has been causing problems since 1.9.x I think.
Jeremy Allison [Fri, 3 Feb 2006 22:10:37 +0000 (22:10 +0000)]
r13314: This code has been causing problems since 1.9.x I think.
Remove check_for_pipe() - Volker was completely correct.
If it gets re-added it will be in a old open call path, not
in the generic code path.
Jeremy.
(This used to be commit 50c894a6e949d4d3579926650674f381a821a671)

16 years agor13310: first round of server affinity patches for winbindd & net ads join
Gerald Carter [Fri, 3 Feb 2006 21:19:24 +0000 (21:19 +0000)]
r13310: first round of server affinity patches for winbindd & net ads join
(This used to be commit 6c3480f9aecc061660ad5c06347b8f1d3e11a330)

16 years agor13309: If the sid in the winbind name2sid cache is not valid (NT_STATUS_NONE_MAPPED),
Volker Lendecke [Fri, 3 Feb 2006 19:24:52 +0000 (19:24 +0000)]
r13309: If the sid in the winbind name2sid cache is not valid (NT_STATUS_NONE_MAPPED),
we have S-0-0 as a SID in the cache. This leads to ugly level 0 messages from
string_to_sid. Avoid them.

Volker
(This used to be commit d62da3e9875592af91469bf75ca32be77a40ea59)

16 years agor13306: Do not call netbios_setup() if this file is sourced by sh or bash.
Lars Müller [Fri, 3 Feb 2006 15:39:07 +0000 (15:39 +0000)]
r13306: Do not call netbios_setup() if this file is sourced by sh or bash.
(This used to be commit 72c6432ae8b8bf2330fc1a8019d332ab95b57e4e)

16 years agor13299: From testing W2K3 and W2K the delete on close bit seems to be always
Jeremy Allison [Fri, 3 Feb 2006 02:16:35 +0000 (02:16 +0000)]
r13299: From testing W2K3 and W2K the delete on close bit seems to be always
honored (ie. the file gets deleted) for derectories when set at open
time - even though it doesn't show in the qfileinfo call. This is not
true of files.... (if anyone from the EU is listening, it's stuff like
this that makes CIFS non-documentable :-).
Jeremy.
(This used to be commit e2fc8a196a06f76aa47fabc30872c701a2f7ccec)

16 years agor13296: Align trunk with branches/SAMBA_3_0.
Lars Müller [Thu, 2 Feb 2006 21:34:40 +0000 (21:34 +0000)]
r13296: Align trunk with branches/SAMBA_3_0.

Add missing '\' in branches/SAMBA_3_0.
(This used to be commit a60aed7a38ab5d4401db207d52925e59f1e445f3)