metze/old/v3-2-winbind-ndr.git
18 years agoLet the carnage begin....
jerry [Fri, 3 Feb 2006 22:19:41 +0000 (22:19 +0000)]
Let the carnage begin....
Sync with trunk as off r13315

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13316 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoThis code has been causing problems since 1.9.x I think.
jra [Fri, 3 Feb 2006 22:10:37 +0000 (22:10 +0000)]
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.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13314 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agofirst round of server affinity patches for winbindd & net ads join
jerry [Fri, 3 Feb 2006 21:19:24 +0000 (21:19 +0000)]
first round of server affinity patches for winbindd & net ads join

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13310 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoIf the sid in the winbind name2sid cache is not valid (NT_STATUS_NONE_MAPPED),
vlendec [Fri, 3 Feb 2006 19:24:52 +0000 (19:24 +0000)]
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

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13309 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoDo not call netbios_setup() if this file is sourced by sh or bash.
lmuelle [Fri, 3 Feb 2006 15:39:07 +0000 (15:39 +0000)]
Do not call netbios_setup() if this file is sourced by sh or bash.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13306 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFrom testing W2K3 and W2K the delete on close bit seems to be always
jra [Fri, 3 Feb 2006 02:16:35 +0000 (02:16 +0000)]
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.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13299 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoAlign trunk with branches/SAMBA_3_0.
lmuelle [Thu, 2 Feb 2006 21:34:40 +0000 (21:34 +0000)]
Align trunk with branches/SAMBA_3_0.

Add missing '\' in branches/SAMBA_3_0.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13296 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix basic delete on close tests - don't forget to tell
jra [Thu, 2 Feb 2006 21:29:49 +0000 (21:29 +0000)]
Fix basic delete on close tests - don't forget to tell
the data struct how big the token is... :-).
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13294 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoRather a big patch I'm afraid, but this should fix bug #3347
jra [Thu, 2 Feb 2006 20:44:50 +0000 (20:44 +0000)]
Rather a big patch I'm afraid, but this should fix bug #3347
by saving the UNIX token used to set a delete on close flag,
and using it when doing the delete. libsmbsharemodes.so still
needs updating to cope with this change.
Samba4 torture tests to follow.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13293 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoNT checks the minimum password age dynamically. That means we have to ignore
vlendec [Thu, 2 Feb 2006 16:38:37 +0000 (16:38 +0000)]
NT checks the minimum password age dynamically. That means we have to ignore
the sambapwdmustchange field if we can access the corresponding account
policy and calculate it dynamically based on the pwdlastset field.

Volker

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13291 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoAdding Account Policy LDAP attributes for eDirectory schema.
gd [Thu, 2 Feb 2006 16:25:58 +0000 (16:25 +0000)]
Adding Account Policy LDAP attributes for eDirectory schema.

Guenther

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13290 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoreadding readme file
jerry [Wed, 1 Feb 2006 20:31:28 +0000 (20:31 +0000)]
readding readme file

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13288 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoremovning readme file
jerry [Wed, 1 Feb 2006 20:30:46 +0000 (20:30 +0000)]
removning readme file

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13287 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agochanging target file in another branch
jerry [Wed, 1 Feb 2006 20:29:41 +0000 (20:29 +0000)]
changing target file in another branch

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13286 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix for bug #3467. Not a show stopper.
jra [Wed, 1 Feb 2006 04:14:07 +0000 (04:14 +0000)]
Fix for bug #3467. Not a show stopper.
jason qian <jason@infrant.com> was a *fantastic*
help in tracking this down.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13274 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoArrgggg. Fix smbstatus and swat status to ignore
jra [Tue, 31 Jan 2006 21:54:24 +0000 (21:54 +0000)]
Arrgggg. Fix smbstatus and swat status to ignore
bloody placeholder share mode entries (I hate
these - I've had to add this filter code now to too
many places :-).
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13262 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix stupid bug Volker found for big-endian machines.
jra [Tue, 31 Jan 2006 18:34:51 +0000 (18:34 +0000)]
Fix stupid bug Volker found for big-endian machines.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13260 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix python build with older python versions (e.g. 2.2.1) like in United Linux...
lmuelle [Tue, 31 Jan 2006 10:39:45 +0000 (10:39 +0000)]
Fix python build with older python versions (e.g. 2.2.1) like in United         Linux 1 (UL) aka SuSE Linux Enterprise Server (SLES) 8.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13257 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix from Qiao Yang <qyang@stbernard.com> to ensure we
jra [Mon, 30 Jan 2006 20:20:17 +0000 (20:20 +0000)]
Fix from Qiao Yang <qyang@stbernard.com> to ensure we
always update the failed time when we are adding a failed
connection.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13238 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agofixing RedHat 7.x packaging
jerry [Mon, 30 Jan 2006 19:23:32 +0000 (19:23 +0000)]
fixing RedHat 7.x packaging

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13235 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agobuild fixes for smbmnt; remove unused variable; ready to ship 3.0.21b now
jerry [Mon, 30 Jan 2006 18:38:18 +0000 (18:38 +0000)]
build fixes for smbmnt; remove unused variable; ready to ship 3.0.21b now

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13233 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agodefensive programming in an attempt to prevent crashes due to a PDC rebooting
jerry [Mon, 30 Jan 2006 17:47:24 +0000 (17:47 +0000)]
defensive programming in an attempt to prevent crashes due to a PDC rebooting

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13232 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoapparently strncat() is converted to strcat() on RH7.3 and similar systems. Fix...
jerry [Mon, 30 Jan 2006 17:42:42 +0000 (17:42 +0000)]
apparently strncat() is converted to strcat() on RH7.3 and similar systems.  Fix the build on those boxes

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13231 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years ago* fix bad comparison caught by the AIX compiler in wbinfo code
jerry [Mon, 30 Jan 2006 13:32:41 +0000 (13:32 +0000)]
* fix bad comparison caught by the AIX compiler in wbinfo code
* update output from mkversion.sh to include the SAMBA_VENDOR_PATCH

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13229 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agobetter to cast the return too
idra [Sun, 29 Jan 2006 18:43:52 +0000 (18:43 +0000)]
better to cast the return too

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13224 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoNever assume mode_t is of type int.
idra [Sun, 29 Jan 2006 18:22:39 +0000 (18:22 +0000)]
Never assume mode_t is of type int.
We were trashing the stack on machines that define mode_t as uint16_t

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13222 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years ago r12422@cabra: derrell | 2006-01-28 23:57:35 -0500
derrell [Sun, 29 Jan 2006 04:57:42 +0000 (04:57 +0000)]
 r12422@cabra:  derrell | 2006-01-28 23:57:35 -0500
 Fix cli_setpathinfo() to actually do what it's supposed to.

 Also, get rid of some apparently drug-induced code to deal with create time
 which isn't being manipulated anyway.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13216 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years ago r12420@cabra: derrell | 2006-01-28 19:10:58 -0500
derrell [Sun, 29 Jan 2006 00:11:34 +0000 (00:11 +0000)]
 r12420@cabra:  derrell | 2006-01-28 19:10:58 -0500
 This should fix bug #3446.

 - The authentication domain provided an an SMB URL was being ignored.  This
   patch fixes that.

 - There were a number of places where string copies were not being confirmed to
   be properly null-terminated.  Now, all string copies in libsmbclient.c are
   properly null-terminated.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13214 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years ago r12414@cabra: derrell | 2006-01-28 17:52:17 -0500
derrell [Sat, 28 Jan 2006 22:53:04 +0000 (22:53 +0000)]
 r12414@cabra:  derrell | 2006-01-28 17:52:17 -0500
 lp_load() could not be called multiple times to modify parameter settings based
 on reading from multiple configuration settings.  Each time, it initialized all
 of the settings back to their defaults before reading the specified
 configuration file.

 This patch adds a parameter to lp_load() specifying whether the settings should
 be initialized.  It does, however, still force the settings to be initialized
 the first time, even if the request was to not initialize them.  (Not doing so
 could wreak havoc due to uninitialized values.)

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13212 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix remote password changing if password must change is set
vlendec [Sat, 28 Jan 2006 22:49:25 +0000 (22:49 +0000)]
Fix remote password changing if password must change is set

The problem was that the ntlmssp bind silently failed in that case, we have to
do it anonymously. Or does anybody have a better idea?

Give a better error message if something else is wrong with the account.

Volker

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13211 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoMake smbpasswd -a work again if passdb did not exist.
vlendec [Sat, 28 Jan 2006 17:08:24 +0000 (17:08 +0000)]
Make smbpasswd -a work again if passdb did not exist.

Volker

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13209 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix the build for --with-aio-support. Sorry.
vlendec [Sat, 28 Jan 2006 11:30:43 +0000 (11:30 +0000)]
Fix the build for --with-aio-support. Sorry.

Jeremy, configure.in decides whether aio support works quite early in the
sequence of checks. Wouldn't it be better to only use aio support if really
all necessary functions actually are around?

Volker

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13202 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix issues exposed by Jerry's testing on 64-bit Solaris
jra [Fri, 27 Jan 2006 23:30:30 +0000 (23:30 +0000)]
Fix issues exposed by Jerry's testing on 64-bit Solaris
(I hope). Separate 3.0.21b patch sent to Jerry.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13198 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoAdd -k switch to dump the data of a single key.
lmuelle [Fri, 27 Jan 2006 21:49:01 +0000 (21:49 +0000)]
Add -k switch to dump the data of a single key.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13197 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoDon't do extra memcpy's unless we're asked to.
jra [Fri, 27 Jan 2006 19:59:48 +0000 (19:59 +0000)]
Don't do extra memcpy's unless we're asked to.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13194 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix up alignment issues when printing share mode
jra [Fri, 27 Jan 2006 19:54:39 +0000 (19:54 +0000)]
Fix up alignment issues when printing share mode
entries. Add paranioa to debug so we know when an
entry is unused.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13192 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix #3458 from Andriy Gapon <avg@icyb.net.ua>. Don't
jra [Fri, 27 Jan 2006 19:24:37 +0000 (19:24 +0000)]
Fix #3458 from Andriy Gapon <avg@icyb.net.ua>. Don't
access free'd memory.
Jerry please pick up for 3.0.21b !
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13190 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoIBM Tivoli Directory Server schema updates from John Janosik
jmcd [Fri, 27 Jan 2006 15:14:55 +0000 (15:14 +0000)]
IBM Tivoli Directory Server schema updates from John Janosik
<jpjanosi@us.ibm.com>

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13187 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix show-stopper bug for 3.0.21b where 4 leg NTLMSSP SPNEGO
jra [Fri, 27 Jan 2006 02:35:08 +0000 (02:35 +0000)]
Fix show-stopper bug for 3.0.21b where 4 leg NTLMSSP SPNEGO
auth was not generating the correct auth header on the 4th
packet. This may fix a lot of Windows client complaints and
is essential for release.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13176 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoActually make adding a new user into an empty pdbtdb
jra [Fri, 27 Jan 2006 00:09:03 +0000 (00:09 +0000)]
Actually make adding a new user into an empty pdbtdb
file create the file.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13175 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix incorrect error message when new tdb not created correctly.
jra [Thu, 26 Jan 2006 23:55:26 +0000 (23:55 +0000)]
Fix incorrect error message when new tdb not created correctly.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13172 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoAllow to set the flags for a ds_enum_domain_trusts query in rpcclient.
gd [Thu, 26 Jan 2006 12:04:43 +0000 (12:04 +0000)]
Allow to set the flags for a ds_enum_domain_trusts query in rpcclient.

Guenther

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13162 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix bug: #3413
idra [Thu, 26 Jan 2006 00:14:25 +0000 (00:14 +0000)]
Fix bug: #3413
Check that ldap admin dn is defined in smb.conf before
setting the ldap password in secrets.tdb

Based on patch by William Jojo <jojowil@hvcc.edu>

Simo.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13148 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoRaise creds_server_step fail log messages to debug level 2.
jra [Wed, 25 Jan 2006 23:00:07 +0000 (23:00 +0000)]
Raise creds_server_step fail log messages to debug level 2.
These can happen in normal operation (I think - not 100%
sure) and don't want to alarm admins. Jerry please add this
to 3.0.21b.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13147 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix swat - make sure it can list running services (ensure loopback_ip)
jra [Wed, 25 Jan 2006 21:58:06 +0000 (21:58 +0000)]
Fix swat - make sure it can list running services (ensure loopback_ip)
is defined. Jerry - this needs to be in 3.0.21b.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13140 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoold fix I forgot to commit
idra [Wed, 25 Jan 2006 21:29:36 +0000 (21:29 +0000)]
old fix I forgot to commit
need to access info when using the ldap backend

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13138 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agomake cleare where long ifdefs ends
idra [Wed, 25 Jan 2006 21:25:25 +0000 (21:25 +0000)]
make cleare where long ifdefs ends

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13137 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix handling user sid and user gid
idra [Wed, 25 Jan 2006 21:24:51 +0000 (21:24 +0000)]
Fix handling user sid and user gid

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13136 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agopatch from Makr Proehl <m.proehl@science-computing.de> for dumping server role when...
jerry [Wed, 25 Jan 2006 15:43:15 +0000 (15:43 +0000)]
patch from Makr Proehl <m.proehl@science-computing.de> for dumping server role when calling 'testparm -s' (BUG 1336)

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13133 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoOld fix from Lars
idra [Wed, 25 Jan 2006 15:12:18 +0000 (15:12 +0000)]
Old fix from Lars
tx

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13132 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agomore spec file fixes for RHEL
jerry [Wed, 25 Jan 2006 05:27:23 +0000 (05:27 +0000)]
more spec file fixes for RHEL

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13127 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoVery well spotted crash bug fix for #3343 from
jra [Wed, 25 Jan 2006 05:04:08 +0000 (05:04 +0000)]
Very well spotted crash bug fix for #3343 from
SATOH Fumiyasu <fumiyas@miraclelinux.com>
Jerry please pick this up for 3.0.21b.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13125 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoworking on RHEL/Fedora packaging for 64-bit platforms and general cleanup
jerry [Wed, 25 Jan 2006 04:56:32 +0000 (04:56 +0000)]
working on RHEL/Fedora packaging for 64-bit platforms and general cleanup

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13124 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix for #1779 from William Jojo <jojowil@hvcc.edu>
jra [Tue, 24 Jan 2006 20:15:08 +0000 (20:15 +0000)]
Fix for #1779 from William Jojo <jojowil@hvcc.edu>
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13119 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoremove an invalid debug message about call get_share_mode_lock() with a NULL service...
jerry [Tue, 24 Jan 2006 17:27:30 +0000 (17:27 +0000)]
remove an invalid debug message about call get_share_mode_lock() with a NULL service path and fname (we do it all the time internally)

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13110 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix warnings assigning int to a size_t.
jra [Mon, 23 Jan 2006 23:19:31 +0000 (23:19 +0000)]
Fix warnings assigning int to a size_t.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13095 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoadding vendor patch level string as announced on samba-technical ml
jerry [Mon, 23 Jan 2006 22:02:52 +0000 (22:02 +0000)]
adding vendor patch level string as announced on samba-technical ml

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13093 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix gcc warning about using '0' with %s.
jra [Mon, 23 Jan 2006 21:57:58 +0000 (21:57 +0000)]
Fix gcc warning about using '0' with %s.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13091 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoquick fix to work around building ilbnss_winbind.so on SOlaris when --enable-develope...
jerry [Mon, 23 Jan 2006 21:57:36 +0000 (21:57 +0000)]
quick fix to work around building ilbnss_winbind.so on SOlaris when --enable-developer is specified

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13089 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agohooking max connections into 'add share' as well (although the WinXP UI doesn't give...
jerry [Mon, 23 Jan 2006 14:47:55 +0000 (14:47 +0000)]
hooking max connections into 'add share' as well (although the WinXP UI doesn't give you a way to set the value on add

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13086 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agohook the max connections spin box in the share properties MMC plugin
jerry [Mon, 23 Jan 2006 14:34:26 +0000 (14:34 +0000)]
hook the max connections spin box in the share properties MMC plugin
dialog to the 'max connections' smb.conf parameter.  Also added the max
uses int from the SHARE_INFO_2 structure to the 'modify share command'

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13085 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agopatch suggested by Adam Nielsen for better smbstatus formatting
jerry [Mon, 23 Jan 2006 14:26:48 +0000 (14:26 +0000)]
patch suggested by Adam Nielsen for better smbstatus formatting

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13083 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agorevert an accidentally commited patch (still in progress)
jerry [Mon, 23 Jan 2006 14:04:40 +0000 (14:04 +0000)]
revert an accidentally commited patch (still in progress)

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13082 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agocorrect fix for the segv in nmbd caused by a double free on namerec.
jerry [Mon, 23 Jan 2006 14:02:17 +0000 (14:02 +0000)]
correct fix for the segv in nmbd caused by a double free on namerec.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13081 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix segfault in vfstest and smbtorture.
deryck [Mon, 23 Jan 2006 00:19:45 +0000 (00:19 +0000)]
Fix segfault in vfstest and smbtorture.

deryck

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13072 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoAdd %w macro for the winbind seperator which allows us for example
lmuelle [Fri, 20 Jan 2006 20:22:23 +0000 (20:22 +0000)]
Add %w macro for the winbind seperator which allows us for example
        valid users = %S, %D%w%S

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13058 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agotrying to fix the confusion over packaging platforms
jerry [Fri, 20 Jan 2006 01:11:26 +0000 (01:11 +0000)]
trying to fix the confusion over packaging platforms

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13048 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agospecfile updates from John T.
jerry [Fri, 20 Jan 2006 01:09:44 +0000 (01:09 +0000)]
specfile updates from John T.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13047 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix for bug #3248 Stefan Burkei <stefan@burkei.de>.
jra [Thu, 19 Jan 2006 22:26:26 +0000 (22:26 +0000)]
Fix for bug #3248 Stefan Burkei <stefan@burkei.de>.
When doing auth_crap authentication use the client
given workstation name not our own.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13042 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix for #3419 - vfs_full_audit *never* worked
jra [Thu, 19 Jan 2006 00:34:48 +0000 (00:34 +0000)]
Fix for #3419 - vfs_full_audit *never* worked
correctly. Static variables were used !
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13028 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoSupport file change notifications from FAM.
jpeach [Thu, 19 Jan 2006 00:30:16 +0000 (00:30 +0000)]
Support file change notifications from FAM.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13027 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoAdd is_null_sid.
gd [Thu, 19 Jan 2006 00:03:07 +0000 (00:03 +0000)]
Add is_null_sid.

GUenther

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13024 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoEnsure we notice if we exit due to guest user setup fail.
jra [Wed, 18 Jan 2006 23:42:29 +0000 (23:42 +0000)]
Ensure we notice if we exit due to guest user setup fail.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13023 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoPrevent cli_krb5_get_ticket of getting into an infite loop. This whole
gd [Wed, 18 Jan 2006 22:40:00 +0000 (22:40 +0000)]
Prevent cli_krb5_get_ticket of getting into an infite loop. This whole
area of code needs to be reworked later on.

Guenther

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13020 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoMake logic much clearer. From jpeach.
jra [Wed, 18 Jan 2006 20:45:44 +0000 (20:45 +0000)]
Make logic much clearer. From jpeach.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13015 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix #3421 - it turns out krb5_kt_get_entry() on MIT
jra [Wed, 18 Jan 2006 19:25:18 +0000 (19:25 +0000)]
Fix #3421 - it turns out krb5_kt_get_entry() on MIT
does an implicit open/read/close and blows away an
open keytab handle - so make sure we use a new
handle.
Wonderful analysis from Luke <ldeller@xplantechnology.com>
helped fix this.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@13012 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix cut&paste error, thanks to Björn Jachke <bj@sernet.de>
vlendec [Wed, 18 Jan 2006 10:25:04 +0000 (10:25 +0000)]
Fix cut&paste error, thanks to Björn Jachke <bj@sernet.de>

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12994 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoOuch...
vlendec [Wed, 18 Jan 2006 10:05:55 +0000 (10:05 +0000)]
Ouch...

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12993 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agosome fixes for BUG 3331 - solaris packaging
jerry [Wed, 18 Jan 2006 04:56:28 +0000 (04:56 +0000)]
some fixes for BUG 3331 - solaris packaging

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12991 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoBUG 3329: patch from David May <mayd@cygnus.uwa.edu.au> for Solaris shell script...
jerry [Wed, 18 Jan 2006 04:44:59 +0000 (04:44 +0000)]
BUG 3329: patch from David May <mayd@cygnus.uwa.edu.au> for Solaris shell script portability issues in 'make test'

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12990 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoUse d_fprintf(stderr, ...) for any error message in net.
lmuelle [Tue, 17 Jan 2006 21:22:00 +0000 (21:22 +0000)]
Use d_fprintf(stderr, ...) for any error message in net.

All 'usage' messages are still printed to stdout.

Fix some compiler warnings for system() calls where we didn't used the
return code.  Add appropriate error messages and return with the error
code we got from system() or NT_STATUS_UNSUCCESSFUL.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12986 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoBUG 1061: don't corrupt the file name when reading an lmhosts file (-H) in nmbd....
jerry [Mon, 16 Jan 2006 18:03:56 +0000 (18:03 +0000)]
BUG 1061: don't corrupt the file name when reading an lmhosts file (-H) in nmbd.  Patch from    Andrew Esh <Andrew_Esh@adaptec.com>

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12967 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoRewind rem_backend in the case we have to workaround the idmap_ prefix.
lmuelle [Mon, 16 Jan 2006 17:21:47 +0000 (17:21 +0000)]
Rewind rem_backend in the case we have to workaround the idmap_ prefix.
Else SAFE_FREE seg faults.  Thanks to Günther for pointing me at this.

I've implemented in in this was as we should announce to remove the
idmap_ strip stuff after some time at all.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12964 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix for bug #3035 from SATOH Fumiyasu <fumiyas@miraclelinux.com>
jra [Mon, 16 Jan 2006 05:47:39 +0000 (05:47 +0000)]
Fix for bug #3035 from SATOH Fumiyasu <fumiyas@miraclelinux.com>

On a Windows share, a file with read-only dosmode can be opened with
DELETE_ACCESS. But on a Samba share (delete readonly = no), it
fails with NT_STATUS_CANNOT_DELETE error.

This semantic causes a problem that a user can not
rename a file with read-only dosmode on a Samba share
from a Windows command prompt (i.e. cmd.exe, but can rename
from Windows Explorer).

Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12956 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoSupport the TCP_FASTACK socket option if it is available. Note that this will
jpeach [Sun, 15 Jan 2006 23:13:47 +0000 (23:13 +0000)]
Support the TCP_FASTACK socket option if it is available. Note that this will
not acutally help, but it is good to be complete.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12953 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoTell the MIPSPro compiler to push DEBUG calls out of line.
jpeach [Sun, 15 Jan 2006 23:09:17 +0000 (23:09 +0000)]
Tell the MIPSPro compiler to push DEBUG calls out of line.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12951 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agofix a segfault in nmbd when 'wins support = yes' caused by double free
jerry [Sun, 15 Jan 2006 12:30:36 +0000 (12:30 +0000)]
fix a segfault in nmbd when 'wins support = yes' caused by double free

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12946 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix for #3408 (change password fails) from William Jojo <jojowil@hvcc.edu>.
jra [Sat, 14 Jan 2006 20:25:51 +0000 (20:25 +0000)]
Fix for #3408 (change password fails) from William Jojo <jojowil@hvcc.edu>.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12938 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix bug #3264.
lmuelle [Sat, 14 Jan 2006 15:25:33 +0000 (15:25 +0000)]
Fix bug #3264.

If we detect a leading 'idmap_' for the idmap backend setting we strip
this and inform about the deprecated config with DEBUG 0.

I'm not sure if we should set a TTL of one year or five additional
releases from now for this code.

This is required for the changes Günther made as the first step to solve
bug #3264.  With this fix we can even run with an old config.  This is
very important as we else will break existing configurations with an
update.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12936 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoAfter discussion with Volker fix bug #3397 using a variant of the patch by Alex Deite...
ab [Sat, 14 Jan 2006 12:37:25 +0000 (12:37 +0000)]
After discussion with Volker fix bug #3397 using a variant of the patch by Alex Deiter (tiamat@komi.mts.ru).
Introduces level 9 of getuserinfo and allows to successfully install MS SMS2003
on a member of a Samba domain. Also added support for this level in rpcclient.

The code for infolevel 9 is modelled upon Samba-TNG by Alex Deiter.

Jerry, we need this in 3.0.21b.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12935 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix typo.
jra [Fri, 13 Jan 2006 23:54:12 +0000 (23:54 +0000)]
Fix typo.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12922 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix for #3401 from Andrew Bartlett. Original fix from
jra [Fri, 13 Jan 2006 23:23:09 +0000 (23:23 +0000)]
Fix for #3401 from Andrew Bartlett. Original fix from
Yau Lam Yiu <yiuext@cs.ust.hk>.
Jeremy.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12920 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agouse rpcstr_pull() instead of unistr_to_ascii() when validating share names
jerry [Fri, 13 Jan 2006 21:22:25 +0000 (21:22 +0000)]
use rpcstr_pull() instead of unistr_to_ascii() when validating share names

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12916 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoprotect against changing the SCM security descriptor
jerry [Fri, 13 Jan 2006 20:26:59 +0000 (20:26 +0000)]
protect against changing the SCM security descriptor

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12915 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoadding query/set ops for security descriptors on services.
jerry [Fri, 13 Jan 2006 20:24:50 +0000 (20:24 +0000)]
adding query/set ops for security descriptors on services.

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12914 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agomissed merge to fix BUG 3391; ensure we can lookup account policies
jerry [Fri, 13 Jan 2006 19:38:09 +0000 (19:38 +0000)]
missed merge to fix BUG 3391; ensure we can lookup account policies

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12913 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agopatch from Tony Mountifield <tony@softins.co.uk> for BUG 3327 (fix bad access to...
jerry [Fri, 13 Jan 2006 18:45:30 +0000 (18:45 +0000)]
patch from Tony Mountifield <tony@softins.co.uk> for BUG 3327 (fix bad access to gencache.tdb after fork() in smbmount

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12912 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix #3264, allow to load idmap_ad with "idmap backend = ad".
gd [Fri, 13 Jan 2006 14:55:08 +0000 (14:55 +0000)]
Fix #3264, allow to load idmap_ad with "idmap backend = ad".

Finally cleanup the way idmap modules are build and loaded, idmap_rid
now will have to be loaded without prefix, just "rid".

Guenther

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12904 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoFix netfileenum returning WERR_BUF_TOO_SMALL.
gd [Fri, 13 Jan 2006 11:19:59 +0000 (11:19 +0000)]
Fix netfileenum returning WERR_BUF_TOO_SMALL.

Guenther

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12901 0c0555d6-39d7-0310-84fc-f1cc0bd64818

18 years agoMerge from trunk:
gd [Fri, 13 Jan 2006 11:11:23 +0000 (11:11 +0000)]
Merge from trunk:

Correctly handle the case where users logon with an expired password.

In that case pam_sm_authenticate has to return PAM_SUCESS instead of
PAM_NEW_AUTHTOK_REQD or PAM_AUTHTOK_EXPIRED and pam_sm_acct_mgmt has to
take care of requesting an immediate password change. (see the Linux PAM
documentation).

Fixes Bugzilla #1524, #3205. Tested with login, sshd, kdm and gdm on
Linux.

Thanks to Scott Barker <Scott_Barker@mtechIT.com>.

Guenther

git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_0@12900 0c0555d6-39d7-0310-84fc-f1cc0bd64818