ira/wip.git
16 years agoThis commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
cvs2svn Import User [Fri, 19 Mar 2004 17:36:57 +0000 (17:36 +0000)]
This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 73ffc394b58fa951bca444506cd9d75a159e7f11)

16 years agoApply some more of Derrell Lipman's changes.
Richard Sharpe [Fri, 19 Mar 2004 17:36:56 +0000 (17:36 +0000)]
Apply some more of Derrell Lipman's changes.
(This used to be commit a6457e1c817663cf5f3e77e4dd431ac0d9184dc7)

16 years agoadd --with-libdir and --with-mandir (patch from Guenther Deschner)
Gerald Carter [Fri, 19 Mar 2004 16:59:59 +0000 (16:59 +0000)]
add --with-libdir and --with-mandir (patch from Guenther Deschner)
(This used to be commit 649e1c372e0a407d8283cc1d938376ac4ad8e525)

16 years agoadd --with-libdir and --with-mandir (patch from Guenther Deschner)
Gerald Carter [Fri, 19 Mar 2004 16:58:16 +0000 (16:58 +0000)]
add --with-libdir and --with-mandir (patch from Guenther Deschner)
(This used to be commit a1d6200cd5488ce328c7238b11c54785d64ca447)

16 years agobumping version to 3.0.3pre2
Gerald Carter [Fri, 19 Mar 2004 16:23:54 +0000 (16:23 +0000)]
bumping version to 3.0.3pre2
(This used to be commit 54de60405457bd1fdcbaf6d888969cf6ba897ec4)

16 years agoupdating release notes & merging Derrel Lipman's libsmbclient patch from HEAD
Gerald Carter [Fri, 19 Mar 2004 16:22:47 +0000 (16:22 +0000)]
updating release notes & merging Derrel Lipman's libsmbclient patch from HEAD
(This used to be commit 5fbfaa687a3674287eeadd205f56b2b253a9e2a9)

16 years agocleaning up a few compiler warngings
Gerald Carter [Fri, 19 Mar 2004 16:21:50 +0000 (16:21 +0000)]
cleaning up a few compiler warngings
(This used to be commit 8ceefd5438a1071a262a7db234c9857fbad05147)

16 years agowrap cli_tdis() in check to make sure we have a valid cnum
Gerald Carter [Fri, 19 Mar 2004 15:52:16 +0000 (15:52 +0000)]
wrap cli_tdis() in check to make sure we have a valid cnum
(This used to be commit e54342b062e7736b46f56bcb0e064acc5a7b98ee)

16 years agoadd privileges support to ldapsam too
Simo Sorce [Fri, 19 Mar 2004 14:31:09 +0000 (14:31 +0000)]
add privileges support to ldapsam too
(This used to be commit d940a2f77377dd1560cea4c782823cf9cd97a3aa)

16 years agobackport from head
Simo Sorce [Fri, 19 Mar 2004 11:28:36 +0000 (11:28 +0000)]
backport from head
(This used to be commit e05eb1437054286f14714c46099e867a396dac7d)

16 years agothe buffer must be greater then src string len otherwise bad things happen!
Simo Sorce [Fri, 19 Mar 2004 11:27:14 +0000 (11:27 +0000)]
the buffer must be greater then src string len otherwise bad things happen!
(This used to be commit 83213238c2f1541a0520175abfdb1f884e06a018)

16 years agoFix gcc warnings. Fix mkproto with new type.
Jeremy Allison [Fri, 19 Mar 2004 01:29:18 +0000 (01:29 +0000)]
Fix gcc warnings. Fix mkproto with new type.
Jeremy.
(This used to be commit 6e4123fd6bb8622063c25dd6ad003f97eda7c6f5)

16 years agoFix gcc warnings. Fix mkproto with new type.
Jeremy Allison [Fri, 19 Mar 2004 01:29:14 +0000 (01:29 +0000)]
Fix gcc warnings. Fix mkproto with new type.
Jeremy.
(This used to be commit 00fa66df3edeb92ec5efd49bd61f98691e74877a)

16 years agoMerge from HEAD for Amanda group.
Jeremy Allison [Thu, 18 Mar 2004 23:45:15 +0000 (23:45 +0000)]
Merge from HEAD for Amanda group.
Apply Craig Barratt's fixes to allow multiple exlusion files and patterns.
Jeremy.
(This used to be commit 0272fac8ca40b3d4ea4de8ac8a2e371d450d12e6)

16 years agoApply Craig Barratt's fixes to allow multiple exlusion files and patterns.
Richard Sharpe [Thu, 18 Mar 2004 22:29:54 +0000 (22:29 +0000)]
Apply Craig Barratt's fixes to allow multiple exlusion files and patterns.

Much of this was applied by hand because of the changes in the code. However,
it builds and smbclient seems to work still. The Amanda folks are testing
and it seems to work there as well.
(This used to be commit 10d05b57c5c66718fb1ca476f7214087ddae29ee)

16 years agomerge from 3.0...LDAP password lockout support
Jim McDonough [Thu, 18 Mar 2004 20:05:00 +0000 (20:05 +0000)]
merge from 3.0...LDAP password lockout support
(This used to be commit b627cee3848d73e35181c9e6fdd9931452b28e48)

16 years agoPassword lockout for LDAP backend. Caches autolock flag, bad count, and
Jim McDonough [Thu, 18 Mar 2004 19:22:51 +0000 (19:22 +0000)]
Password lockout for LDAP backend.  Caches autolock flag, bad count, and
bad time locally, updating the directory only for hitting the policy limit
or resetting.

This needed to be done at the passdb level rather than auth, because some
of the functions need to be supported from tools such as pdbedit.  It was
done at the LDAP backend level instead of generically after discussion,
because of the complexity of inserting it at a higher level.

The login cache read/write/delete is outside of the ldap backend, so it could
easily be called by other backends.  tdbsam won't call it for obvious
reasons, and authors of other backends need to decide if they want to
implement it.
(This used to be commit 2a679cbc87a2a9111e9e6cdebbb62dec0ab3a0c0)

16 years agoBUG 932: ulrich@holeschak.de (Ulrich Holeschak); fix local password change using...
Gerald Carter [Thu, 18 Mar 2004 18:10:30 +0000 (18:10 +0000)]
BUG 932: ulrich@holeschak.de (Ulrich Holeschak); fix local password change using pam_smbpass
(This used to be commit ad59b6fd9c822033bb8ab85ef9c51ec912fd9fd5)

16 years agoBUG 932: ulrich@holeschak.de (Ulrich Holeschak); fix local password change using...
Gerald Carter [Thu, 18 Mar 2004 18:09:59 +0000 (18:09 +0000)]
BUG 932: ulrich@holeschak.de (Ulrich Holeschak); fix local password change using pam_smbpass
(This used to be commit f21182e24fe440b0cec57baf52cfbe6e07d6c7b7)

16 years agoCorrectness patch from fumiya@miraclelinux.com to count characters correctly,
Jeremy Allison [Thu, 18 Mar 2004 17:58:50 +0000 (17:58 +0000)]
Correctness patch from fumiya@miraclelinux.com to count characters correctly,
doesn't affect what got put on the wire.
Jeremy.
(This used to be commit e8b68ef965ea2e3bed41cb397ef32df05c631e92)

16 years agoCorrectness patch from fumiya@miraclelinux.com to count characters correctly,
Jeremy Allison [Thu, 18 Mar 2004 17:58:47 +0000 (17:58 +0000)]
Correctness patch from fumiya@miraclelinux.com to count characters correctly,
doesn't affect what got put on the wire.
Jeremy.
(This used to be commit 05243a8de06b6589e2405a4a7be25cdf5d338c10)

16 years agoCommit Derrell Lipman's changes and fixes to libsmbclient. The build but
Richard Sharpe [Thu, 18 Mar 2004 17:11:52 +0000 (17:11 +0000)]
Commit Derrell Lipman's changes and fixes to libsmbclient. The build but
I have not tested them beyond building. I did fix the two instances of
safe_strxxx that were introduced.
(This used to be commit bf89adbcb4c77792004e4ea9da248b71b72b7dbb)

16 years agoupdating release notes in preparation fro 3.0.3pre1
Gerald Carter [Thu, 18 Mar 2004 16:50:01 +0000 (16:50 +0000)]
updating release notes in preparation fro 3.0.3pre1
(This used to be commit 3744d282badbe2fdc67e3ac309a0a0226d63173a)

16 years agoFix sambaUserWorkstations on a Samba DC
Volker Lendecke [Thu, 18 Mar 2004 07:38:56 +0000 (07:38 +0000)]
Fix sambaUserWorkstations on a Samba DC
(This used to be commit b58b8b7d6ba607be40d789af023964798b405dcb)

16 years agoFix sambaUserWorkstations for network samlogons against us as DC. Strip
Volker Lendecke [Thu, 18 Mar 2004 07:37:39 +0000 (07:37 +0000)]
Fix sambaUserWorkstations for network samlogons against us as DC. Strip
the \\ off the workstation.

Volker
(This used to be commit a409dd55e857e692a90124bf46575752935cc78b)

16 years agoFix sambaUserWorkstations for network samlogons against us as DC. Strip
Volker Lendecke [Thu, 18 Mar 2004 07:36:36 +0000 (07:36 +0000)]
Fix sambaUserWorkstations for network samlogons against us as DC. Strip
the \\ off the workstation.

Volker
(This used to be commit d01cb00aad76f8be9767fdcfd92c88ea5d8c4f14)

16 years agoTwo little annoyances:
Volker Lendecke [Thu, 18 Mar 2004 07:33:26 +0000 (07:33 +0000)]
Two little annoyances:

net rpc did not inform you if no smbd is running.

I never liked the error message (!) Success! when we established a trust.

Volker
(This used to be commit 1f2dd3a4559a6ba043fcfecb069d41f40656cc7d)

16 years agoTwo little annoyances:
Volker Lendecke [Thu, 18 Mar 2004 07:32:15 +0000 (07:32 +0000)]
Two little annoyances:

net rpc did not inform you if no smbd is running.

I never liked the error message (!) Success! when we established a trust.

Volker
(This used to be commit 4191a434d48065a75f38752c4aa27219f36d602b)

16 years agoAdded a varient of Volker's patch to fix the "self-referrals as anonymous user"
Jeremy Allison [Thu, 18 Mar 2004 02:17:23 +0000 (02:17 +0000)]
Added a varient of Volker's patch to fix the "self-referrals as anonymous user"
problem.
Jeremy.
(This used to be commit 74de9a61407e6c5a15fc7becca085a1d40199080)

16 years agoAdded a varient of Volker's patch to fix the "self-referrals as anonymous user"
Jeremy Allison [Thu, 18 Mar 2004 02:17:20 +0000 (02:17 +0000)]
Added a varient of Volker's patch to fix the "self-referrals as anonymous user"
problem.
Jeremy.
(This used to be commit 9305cd4f2d8c2c18daaa197f1513da1c3d3ee7c1)

16 years agoRemove excess logging when probing for the length of the next mb char.
Jeremy Allison [Wed, 17 Mar 2004 19:23:48 +0000 (19:23 +0000)]
Remove excess logging when probing for the length of the next mb char.
Jeremy.
(This used to be commit 6339c4690aef7692571dd4c65dd0a12d56a7ffab)

16 years agoRemove excess logging when probing for the length of the next mb char.
Jeremy Allison [Wed, 17 Mar 2004 19:23:44 +0000 (19:23 +0000)]
Remove excess logging when probing for the length of the next mb char.
Jeremy.
(This used to be commit 5a2fd8e76587a572cdb97fa87a99cda3e450ce0e)

16 years agoasu/syntax/pc_netlink doesn't fill in the pipe name in the rpc_bind response so dont...
Gerald Carter [Wed, 17 Mar 2004 17:39:00 +0000 (17:39 +0000)]
asu/syntax/pc_netlink doesn't fill in the pipe name in the rpc_bind response so dont check for it
(This used to be commit 234800eeb61f4874e1d178aa0d901eeb360fea2f)

16 years agoasu/syntax/pc_netlink doesn't fill in the pipe name in the rpc_bind response so dont...
Gerald Carter [Wed, 17 Mar 2004 17:38:38 +0000 (17:38 +0000)]
asu/syntax/pc_netlink doesn't fill in the pipe name in the rpc_bind response so dont check for it
(This used to be commit 4d68d3d5ddeda9589f2e3387144fdac616bb791f)

16 years agoBUG 758 -- patch from jpeach@sgi.com (James Peach); fix pdma build
Gerald Carter [Wed, 17 Mar 2004 17:13:36 +0000 (17:13 +0000)]
BUG 758 -- patch from jpeach@sgi.com (James Peach); fix pdma build
(This used to be commit 77bf9fe0ce67b0a74dc5e6837c00e54884cc39ef)

16 years agoBUG 758 -- patch from jpeach@sgi.com (James Peach); fix pdma build
Gerald Carter [Wed, 17 Mar 2004 17:13:26 +0000 (17:13 +0000)]
BUG 758 -- patch from jpeach@sgi.com (James Peach); fix pdma build
(This used to be commit c0a38844be8f1ec0bc254ab6c34688f9132a3f3d)

16 years agoChange check_path_syntax() to use the new next_mb_char_size() function
Jeremy Allison [Wed, 17 Mar 2004 02:08:31 +0000 (02:08 +0000)]
Change check_path_syntax() to use the new next_mb_char_size() function
to make it generic. Remove the mb-codepage "blacklist". Alexander, please
check this fix as it reverts your blacklist changes, but I'm hoping it
fixes the problem in a more generic way for all charsets. I'm not trying
to trample on your (excellent!) work here, just make things more generic
without special cases.
Jeremy.
(This used to be commit 5a9324525acc02e6bf14528679816b35929a564e)

16 years agoChange check_path_syntax() to use the new next_mb_char_size() function
Jeremy Allison [Wed, 17 Mar 2004 02:08:27 +0000 (02:08 +0000)]
Change check_path_syntax() to use the new next_mb_char_size() function
to make it generic. Remove the mb-codepage "blacklist". Alexander, please
check this fix as it reverts your blacklist changes, but I'm hoping it
fixes the problem in a more generic way for all charsets. I'm not trying
to trample on your (excellent!) work here, just make things more generic
without special cases.
Jeremy.
(This used to be commit ca344a784da870965684e41c93ef8bfc5e86d28f)

16 years agoAdd function next_mb_char_size() that returns a size_t of the number of
Jeremy Allison [Tue, 16 Mar 2004 21:59:20 +0000 (21:59 +0000)]
Add function next_mb_char_size() that returns a size_t of the number of
bytes in the mb character at a pointer. Will be useful in fixing check_path_syntax()
to not use a "blacklist". Also re-added my (C) to reply.c. I mean, really - I've
been adding code to the file for over 10 years and I recognise many of the
fuctions as mine ! :-).
Jeremy.
(This used to be commit 5a804dbe0f3ddbd6f3fbdd6b2c5510e143607541)

16 years agoAdd function next_mb_char_size() that returns a size_t of the number of
Jeremy Allison [Tue, 16 Mar 2004 21:59:11 +0000 (21:59 +0000)]
Add function next_mb_char_size() that returns a size_t of the number of
bytes in the mb character at a pointer. Will be useful in fixing check_path_syntax()
to not use a "blacklist". Also re-added my (C) to reply.c. I mean, really - I've
been adding code to the file for over 10 years and I recognise many of the
fuctions as mine ! :-).
Jeremy.
(This used to be commit d2b2a39fd2f2e06cc4aebf081876985f0b28b477)

16 years agomerges from 3.0
Gerald Carter [Tue, 16 Mar 2004 20:32:14 +0000 (20:32 +0000)]
merges from 3.0
(This used to be commit fed98658a5cc82e9fdc65aa73f74e118c1104178)

16 years agofix overlapping memory bug when copying username
Gerald Carter [Tue, 16 Mar 2004 20:28:47 +0000 (20:28 +0000)]
fix overlapping memory bug when copying username
(This used to be commit a7cac639c2cf0e2606d9cfbdb08e961212ee3bfa)

16 years agoBUG 748 - patch from jpeach@sgi.com (James Peach); relax arg parsing to sambalp script
Gerald Carter [Tue, 16 Mar 2004 19:44:40 +0000 (19:44 +0000)]
BUG 748 - patch from jpeach@sgi.com (James Peach); relax arg parsing to sambalp script
(This used to be commit e2361da91f58e123c900f989b0afe94e93387a5d)

16 years agoBUG 768 - patch from jpeach@sgi.com (James Peach); accept profileing arg to init...
Gerald Carter [Tue, 16 Mar 2004 19:43:04 +0000 (19:43 +0000)]
BUG 768 - patch from jpeach@sgi.com (James Peach); accept profileing arg to init script
(This used to be commit a04573aeb0a137feb4be48b74627536e1f0d40b1)

16 years agoBUG 979 -- fix quota display on AIX; patch from Heinrich.Mislik@univie.ac.at (Heinric...
Gerald Carter [Tue, 16 Mar 2004 19:06:30 +0000 (19:06 +0000)]
BUG 979 -- fix quota display on AIX; patch from Heinrich.Mislik@univie.ac.at (Heinrich Mislik)
(This used to be commit 8f9bedaeb1b3b102fa6b23da1f6b03eb0e015359)

16 years agoBUG 979 -- fix quota display on AIX; patch from Heinrich.Mislik@univie.ac.at (Heinric...
Gerald Carter [Tue, 16 Mar 2004 19:06:03 +0000 (19:06 +0000)]
BUG 979 -- fix quota display on AIX; patch from Heinrich.Mislik@univie.ac.at (Heinrich Mislik)
(This used to be commit 760b63496ccc908c76ea5d3ed474cbbca268ad61)

16 years agoBUG 1182: patch from john.klinger@lmco.com (John Klinger) to reanable the -n 'no...
Gerald Carter [Tue, 16 Mar 2004 18:54:09 +0000 (18:54 +0000)]
BUG 1182: patch from   john.klinger@lmco.com (John Klinger) to reanable the -n 'no cache' option for winbindd
(This used to be commit d1848988d9ee9fdd870bcdd32c938b907419558b)

16 years agoFix check_path_syntax() for multibyte encodings which have no '\' as second byte.
Alexander Bokovoy [Tue, 16 Mar 2004 17:21:06 +0000 (17:21 +0000)]
Fix check_path_syntax() for multibyte encodings which have no '\' as second byte.
This is intermediate fix as discussed with Jeremy until we move check_path_syntax() to UCS2 internally where all
ambiguity is resolved. Please add other encodings into charcnv.c with such property.
(This used to be commit c8c66337494c63173a6aba4286a843875302da63)

16 years agoFix check_path_syntax() for multibyte encodings which have no '\' as second byte.
Alexander Bokovoy [Tue, 16 Mar 2004 17:18:57 +0000 (17:18 +0000)]
Fix check_path_syntax() for multibyte encodings which have no '\' as second byte.
This is intermediate fix as discussed with Jeremy until we move check_path_syntax() to UCS2 internally where all
ambiguity is resolved. Please add other encodings into charcnv.c with such property.'
'
(This used to be commit 2c404f6ba988d68c6f44df9409c0de319553de10)

16 years agomerging print change notify fix from HP appliance. Also might address some one the...
Gerald Carter [Tue, 16 Mar 2004 17:07:18 +0000 (17:07 +0000)]
merging print change notify fix from HP appliance.  Also might address some one the issues in BUG 1007
(This used to be commit b80e3553bf1b7f8d1435f3144082577f2e30c3a9)

16 years agomerging print change notify fix from HP appliance. Also might address some one the...
Gerald Carter [Tue, 16 Mar 2004 17:06:11 +0000 (17:06 +0000)]
merging print change notify fix from HP appliance.  Also might address some one the issues in BUG 1007
(This used to be commit 17ecea4152fb0883acde675b01f19d3e19ff1d64)

16 years agoBUG 1165, 1126: Fix bug with secondary groups (security = ads) and winbind use defaul...
Gerald Carter [Tue, 16 Mar 2004 16:44:54 +0000 (16:44 +0000)]
BUG 1165, 1126: Fix bug with secondary groups (security = ads) and winbind use default domain = yes
(This used to be commit ca971cf76e5fbb33d51b1fdfa92e4d13b2e150b6)

16 years agoBUG 1165, 1126: Fix bug with secondary groups (security = ads) and winbind use defaul...
Gerald Carter [Tue, 16 Mar 2004 16:41:54 +0000 (16:41 +0000)]
BUG 1165, 1126: Fix bug with secondary groups (security = ads) and winbind use default domain = yes
(This used to be commit f2eaa14b1eb7e89c945b2b06a48e17998c75d620)

16 years agoMake sure we don't clobber the stack when response consists of the empty
Richard Sharpe [Tue, 16 Mar 2004 06:56:20 +0000 (06:56 +0000)]
Make sure we don't clobber the stack when response consists of the empty
string.
(This used to be commit e522663717f6b6141580f34502ad8686d326f8c8)

16 years agoAvoid mb conversion overflow when sending an announcement.
Jeremy Allison [Tue, 16 Mar 2004 00:10:34 +0000 (00:10 +0000)]
Avoid mb conversion overflow when sending an announcement.
Jeremy.
(This used to be commit 7a62d6215d32e664345d10b87ab4e4ddeda5dc2e)

16 years agoAvoid mb conversion overflow when sending an announcement.
Jeremy Allison [Tue, 16 Mar 2004 00:10:30 +0000 (00:10 +0000)]
Avoid mb conversion overflow when sending an announcement.
Jeremy.
(This used to be commit 188e1daaffb3b21abc250ebb37d9a671ba51d054)

16 years agoUse "unix netbios name" type unstring - 64 bytes long to manipulate netbios
Jeremy Allison [Mon, 15 Mar 2004 21:53:59 +0000 (21:53 +0000)]
Use "unix netbios name" type unstring - 64 bytes long to manipulate netbios
names in nmbd. Allows conversion from dos codepage mb strings (ie. SJIS) to
expand to utf8 size on read.
Jeremy.
(This used to be commit b9da3e941d4233c2d3931f32767f3e51b214033e)

16 years agoUse "unix netbios name" type unstring - 64 bytes long to manipulate netbios
Jeremy Allison [Mon, 15 Mar 2004 21:45:45 +0000 (21:45 +0000)]
Use "unix netbios name" type unstring - 64 bytes long to manipulate netbios
names in nmbd. Allows conversion from dos codepage mb strings (ie. SJIS) to
expand to utf8 size on read.
Jeremy.
(This used to be commit 834d816caf9cd6318da00febde50d9233469dac2)

16 years agoremoving extra comma in --with-fhs
Gerald Carter [Mon, 15 Mar 2004 16:20:22 +0000 (16:20 +0000)]
removing extra comma in --with-fhs
(This used to be commit ad1bf59a795e90e0a3757f1dd33d92442928e80c)

16 years agoremoving extra comma in --with-fhs
Gerald Carter [Mon, 15 Mar 2004 16:20:03 +0000 (16:20 +0000)]
removing extra comma in --with-fhs
(This used to be commit 12f3f0268c49c9393ff4cd97cfcd802e6b61bbea)

16 years agomore fixes from 3.0
Gerald Carter [Mon, 15 Mar 2004 16:17:51 +0000 (16:17 +0000)]
more fixes from 3.0
(This used to be commit 211cead67ca2c8c017ee5eec1d6989d4928236bf)

16 years agoinclude swatdir in 'make showlayout'
Gerald Carter [Mon, 15 Mar 2004 16:14:04 +0000 (16:14 +0000)]
include swatdir in 'make showlayout'
(This used to be commit b1115c0fc507e82d828ccbb5853734a964701cd2)

16 years agosync small fixes from 3.0 and fix compiler warning in priv code
Gerald Carter [Mon, 15 Mar 2004 16:12:52 +0000 (16:12 +0000)]
sync small fixes from 3.0 and fix compiler warning in priv code
(This used to be commit c640594c9362dca625a8fa51b453dafe1f3e980d)

16 years agofix byte ordering problem when storing the updating pid for the lpq cache; was causin...
Gerald Carter [Mon, 15 Mar 2004 15:16:29 +0000 (15:16 +0000)]
fix byte ordering problem when storing the updating pid for the lpq cache; was causing an abort in process_exists() on solaris
(This used to be commit ce49e4f2b904ab64ea98af4736147795669495df)

16 years agofix byte ordering problem when storing the updating pid for the lpq cache; was causin...
Gerald Carter [Mon, 15 Mar 2004 15:06:33 +0000 (15:06 +0000)]
fix byte ordering problem when storing the updating pid for the lpq cache; was causing an abort in process_exists() on solaris
(This used to be commit 26681cd2a1567d90cc7d344e8aca6e6a686053f5)

16 years agoOk, one of the latest cleanups did too much... :-)
Volker Lendecke [Sun, 14 Mar 2004 11:15:37 +0000 (11:15 +0000)]
Ok, one of the latest cleanups did too much... :-)

Re-add adding the local aliases to winbindd_getgroups.

Volker
(This used to be commit ae080f2cfaa50cf16c91d760f63db2c721e251c5)

16 years agoClean up a bit :-)
Volker Lendecke [Sun, 14 Mar 2004 10:36:07 +0000 (10:36 +0000)]
Clean up a bit :-)

Volker
(This used to be commit 66c4a6dee88274c2e1493224b0ba694418b32796)

16 years agoFix 'getent group aliasname', this did not look in pdb.
Volker Lendecke [Sun, 14 Mar 2004 10:28:21 +0000 (10:28 +0000)]
Fix 'getent group aliasname', this did not look in pdb.
(This used to be commit 3acac5d626b2897fd2c4b291dd4e0a6c9ceffcfe)

16 years agoAdd and delete aliases via srv_samr_nt. For that I added a RID allocation call
Volker Lendecke [Sun, 14 Mar 2004 10:24:19 +0000 (10:24 +0000)]
Add and delete aliases via srv_samr_nt. For that I added a RID allocation call
to winbindd. idmap_allocate_rid wants information about whether this will be a
user or a group, I did not export this to the winbind interface.

The reason for idmap to get that info is to keep consistent with the
algorithmic convention to alloc only even rids for users and odd rids for
groups. I'm not fully convinced that this really gains us anything. Any real
good arguments?

Volker
(This used to be commit 7f62cf933cad69799204bfdc773e08ff0dde0b20)

16 years agoWhen trying to remove a user from a group, winbind should be informed
Volker Lendecke [Sun, 14 Mar 2004 07:16:05 +0000 (07:16 +0000)]
When trying to remove a user from a group, winbind should be informed
about the user and group...

Volker
(This used to be commit 87fa7904f7da5f4a80ca465c09ae4ad274e81690)

16 years agoWhen trying to remove a user from a group, winbind should be informed
Volker Lendecke [Sun, 14 Mar 2004 07:15:39 +0000 (07:15 +0000)]
When trying to remove a user from a group, winbind should be informed
about the user and group...

Volker
(This used to be commit 9fa2c4045252f07cc0518457d8ef8b81d8402327)

16 years agoMerge from 3.0
Tim Potter [Sun, 14 Mar 2004 03:47:55 +0000 (03:47 +0000)]
Merge from 3.0
(This used to be commit c8db2f7cdbe280ad3c3d35c0640d19b0f664bd36)

16 years agoUse possessive in message asking for user's password.
Tim Potter [Sun, 14 Mar 2004 03:47:03 +0000 (03:47 +0000)]
Use possessive in message asking for user's password.
(This used to be commit cc9765ce97b65bb7a6cd44e847a690d3fbe9d032)

16 years agoMake alias membership maintainable via net rpc group add/delmem. Alias
Volker Lendecke [Sat, 13 Mar 2004 17:57:24 +0000 (17:57 +0000)]
Make alias membership maintainable via net rpc group add/delmem. Alias
creation and deletion still has to be done as well as a 'net alias' command.

Volker
(This used to be commit 975c60b997ac32610c5fa80a488e896596fa9917)

16 years agoRest of my winbindd_passdb alias support
Volker Lendecke [Sat, 13 Mar 2004 17:38:07 +0000 (17:38 +0000)]
Rest of my winbindd_passdb alias support
(This used to be commit d1f38cd73ed5d71ec32e52bee8a60d206fea38ae)

16 years agoAdd alias support to winbindd_passdb. Sorry, Simo, this does not leave too
Volker Lendecke [Sat, 13 Mar 2004 17:35:47 +0000 (17:35 +0000)]
Add alias support to winbindd_passdb. Sorry, Simo, this does not leave too
much of your winbindd_passdb, users are currently not provided by that, only
aliases. Currently the code to maintain that stuff is not yet in, this will be
next, see my next posting to samba-technical.

Volker
(This used to be commit 9e0fb457ba77a55f8271b6acc91a07f0a8df3760)

16 years agoRemove the prototype for alias support in winbind again. This will be
Volker Lendecke [Sat, 13 Mar 2004 16:43:25 +0000 (16:43 +0000)]
Remove the prototype for alias support in winbind again. This will be
replaced by a winbindd_passdb.c checkin soon.

Volker
(This used to be commit 4e96b46a8481bdf4f3408574ccc8c921ade7018b)

16 years agoAdd find_alias, create_alias, delete_alias, get_aliasinfo, set_aliasinfo and
Volker Lendecke [Sat, 13 Mar 2004 16:30:39 +0000 (16:30 +0000)]
Add find_alias, create_alias, delete_alias, get_aliasinfo, set_aliasinfo and
enum_aliases to passdb. create and delete are not yet filled, you have to do
this with net groupmap and net idmap restore.

Volker
(This used to be commit f44bf63d1143ddf6a1a2fdc15a301e0dc0840d50)

16 years agoEnsure we don't truncate strcmps to nstring anymore...
Jeremy Allison [Sat, 13 Mar 2004 02:47:21 +0000 (02:47 +0000)]
Ensure we don't truncate strcmps to nstring anymore...
Jeremy.
(This used to be commit d7cf64b1e4e501bcd01ddc8279babc65d894a4b3)

16 years agoEnsure we don't truncate strcmps to nstring anymore...
Jeremy Allison [Sat, 13 Mar 2004 02:47:19 +0000 (02:47 +0000)]
Ensure we don't truncate strcmps to nstring anymore...
Jeremy.
(This used to be commit b3aff7f214da97925690a5d0a887ea1b336d107a)

16 years agoModified fix for bugid #784. Based on a patch from moriyama@miraclelinux.com (MORIYAM...
Jeremy Allison [Sat, 13 Mar 2004 02:16:26 +0000 (02:16 +0000)]
Modified fix for bugid #784. Based on a patch from moriyama@miraclelinux.com (MORIYAMA Masayuki).
Don't use nstrings to hold workgroup and netbios names. The problem with them is that MB netbios
and workgroup names in unix charset (particularly utf8) may be up to 3x bigger than the name
when represented in dos charset (ie. cp932). So go back to using fstrings for these but
translate into nstrings (ie. 16 byte length values) for transport on the wire.
Jeremy.
(This used to be commit 128dec9ae68fd357550de2649d54056ca4fc65cf)

16 years agoModified fix for bugid #784. Based on a patch from moriyama@miraclelinux.com (MORIYAM...
Jeremy Allison [Sat, 13 Mar 2004 02:16:21 +0000 (02:16 +0000)]
Modified fix for bugid #784. Based on a patch from moriyama@miraclelinux.com (MORIYAMA Masayuki).
Don't use nstrings to hold workgroup and netbios names. The problem with them is that MB netbios
and workgroup names in unix charset (particularly utf8) may be up to 3x bigger than the name
when represented in dos charset (ie. cp932). So go back to using fstrings for these but
translate into nstrings (ie. 16 byte length values) for transport on the wire.
Jeremy.
(This used to be commit b4ea493599ab414f7828b83f40a5a8b43479ff64)

16 years agoFirst part of patch from moriyama@miraclelinux.com (MORIYAMA Masayuki) to
Jeremy Allison [Sat, 13 Mar 2004 00:28:55 +0000 (00:28 +0000)]
First part of patch from moriyama@miraclelinux.com (MORIYAMA Masayuki) to
fix up netbios names with mb strings. Includes reformat of libsmb/nmblib.c
so it's readable.
Jeremy.
(This used to be commit beca3829d1140bf7c2e394993a02dff1f2cf7bbd)

16 years agoFirst part of patch from moriyama@miraclelinux.com (MORIYAMA Masayuki) to
Jeremy Allison [Sat, 13 Mar 2004 00:28:53 +0000 (00:28 +0000)]
First part of patch from moriyama@miraclelinux.com (MORIYAMA Masayuki) to
fix up netbios names with mb strings. Includes reformat of libsmb/nmblib.c
so it's readable.
Jeremy.
(This used to be commit 966e49a48c352563cdd7f75fe2768f2d6612ec7e)

16 years agoif we are truncating to the . we need to start at the beginning in case
Herb Lewis [Fri, 12 Mar 2004 21:35:15 +0000 (21:35 +0000)]
if we are truncating to the . we need to start at the beginning in case
there are multiple "."'s in the name.

This code is protected with an #ifdef TRUNCATE_NETBIOS_NAME and this
is #define'd to 1 directly above. Should we also get rid of the #ifdef?
(This used to be commit 0375dace248eb3dc660fa2bca2808552e502b3f7)

16 years agoBug report 1079 and fix both from Bert Driehuis.
Christopher R. Hertel [Fri, 12 Mar 2004 20:27:23 +0000 (20:27 +0000)]
Bug report 1079 and fix both from Bert Driehuis.

This is an odd corner case having to do with <1C> group names (DC names).
<1C> group names are called (by MS) "Internet Special Groups", which means
that Microsoft's WINS servers will attempt to handle these names in
something approximating an RFC1001/1002 compliant manner.

The problem being reported here is this:  If an initial registration sent
by one of the group members is lost (network error, whatever) then
subsequent refreshes from that particular machine will also fail.  This
only happens if the name is already active (because of other group
members).

In most cases, we (and MS) handle refreshes as registrations if the name
is not in the database.  In this situation, we missed the corner case.

Bert's fix adds an 'else if' that catches the situation in which a refresh
for an unlisted IP of an active <1C> group name is received.  The refresh
is simply handled as a registration when this happens.

[Note: Committing in HEAD.  I am writing some tools to do registrations
       and refreshes so that I can test this.  I don't have an NT Domain
       for testing so I'm going to have to fudge.  This fix is small (I
       cleaned up some Debug messages and comments in addition to the fix)
       and if you want to test it with 3.0.x you can just copy the HEAD
       version into your 3.0.x tree and recompile.]
(This used to be commit 8e52439f4ae9de84107e2d0e9f33f0d4e3c5945a)

16 years agoFix from Robert.Dahlem@gmx.net (Robert Dahlem) for bugid #1048
Jeremy Allison [Fri, 12 Mar 2004 20:24:07 +0000 (20:24 +0000)]
Fix from Robert.Dahlem@gmx.net (Robert Dahlem) for bugid #1048
when mangled names are turned off.
Jeremy.
(This used to be commit 11487e24666c7b3dd4b37f4ef8aec8f8a5bd5a6f)

16 years agoFix from Robert.Dahlem@gmx.net (Robert Dahlem) for bugid #1048
Jeremy Allison [Fri, 12 Mar 2004 20:24:05 +0000 (20:24 +0000)]
Fix from Robert.Dahlem@gmx.net (Robert Dahlem) for bugid #1048
when mangled names are turned off.
Jeremy.
(This used to be commit 29909ce26ac9a0d8e631b1ed884c525674ee5606)

16 years agoFix problems with very long filenames in both smbd and smbclient.
Alexander Bokovoy [Fri, 12 Mar 2004 14:37:37 +0000 (14:37 +0000)]
Fix problems with very long filenames in both smbd and smbclient.
It appears that we pass filename through resolve_wildcards() as pstring and use fstring temporary buffer there.
As result, a long filename in unix charset (UTF-8 by default) can easily expand over 255 bytes while
Windows is able to send to us such names (e.g. Japanese name of ~190 mb chars) which we unable to process through
this small fstring buffer. Tested with W2K and smbclient, Japanese and Cyrillics.
(This used to be commit 83dac6571f99b854ac607d4313cc3f742c1fae2e)

16 years agoFix problems with very long filenames in both smbd and smbclient.
Alexander Bokovoy [Fri, 12 Mar 2004 14:28:14 +0000 (14:28 +0000)]
Fix problems with very long filenames in both smbd and smbclient.
It appears that we pass filename through resolve_wildcards() as pstring and use fstring temporary buffer there.
As result, a long filename in unix charset (UTF-8 by default) can easily expand over 255 bytes while
Windows is able to send to us such names (e.g. Japanese name of ~190 mb chars) which we unable to process through
this small fstring buffer. Tested with W2K and smbclient, Japanese and Cyrillics.
(This used to be commit cc70a548f3c48a9503fd54d01896cc2499f5bbcd)

16 years agoFix build after Jeremy -- yet another place where convert_string() wasn't updated
Alexander Bokovoy [Fri, 12 Mar 2004 12:58:49 +0000 (12:58 +0000)]
Fix build after Jeremy -- yet another place where convert_string() wasn't updated
(This used to be commit e117ed1db84b2447793ccea4036e225c4a552e1e)

16 years agoFix build after Jeremy -- yet another place where convert_string() wasn't updated
Alexander Bokovoy [Fri, 12 Mar 2004 12:57:39 +0000 (12:57 +0000)]
Fix build after Jeremy -- yet another place where convert_string() wasn't updated
(This used to be commit 9acd46ab462cb4aee9938658dda594ef8b8ddcbd)

16 years agoFix string overflow due to wrong size calculation
Alexander Bokovoy [Fri, 12 Mar 2004 11:29:13 +0000 (11:29 +0000)]
Fix string overflow due to wrong size calculation
(This used to be commit cf0285f3ea017d300d94e8c7f7042ae8ccc8f960)

16 years agoFix string overflow due to wrong size calculation
Alexander Bokovoy [Fri, 12 Mar 2004 11:21:50 +0000 (11:21 +0000)]
Fix string overflow due to wrong size calculation
(This used to be commit e1d0b8fc7bbe075dd817e3816f29640cda980732)

16 years agoAllow msdfs symlink syntax to be more forgiving (it took me ages to remember
Jeremy Allison [Fri, 12 Mar 2004 01:43:25 +0000 (01:43 +0000)]
Allow msdfs symlink syntax to be more forgiving (it took me ages to remember
what it was :-). Allow msdfs links to now look like UNC paths : eg.
sym_link -> msdfs://server/share/path/in/share
or :
sym_link -> msdfs:\\server\share\path\in\share
Jeremy.
(This used to be commit 2979c3e388400fb030b94da5c711f803f81ae0b9)

16 years agoAllow msdfs symlink syntax to be more forgiving (it took me ages to remember
Jeremy Allison [Fri, 12 Mar 2004 01:43:23 +0000 (01:43 +0000)]
Allow msdfs symlink syntax to be more forgiving (it took me ages to remember
what it was :-). Allow msdfs links to now look like UNC paths : eg.
sym_link -> msdfs://server/share/path/in/share
or :
sym_link -> msdfs:\\server\share\path\in\share
Jeremy.
(This used to be commit 3c89393e2907e4a3318fb3e94a911cd35f16b4c2)

16 years agoFix bug introduced by Jim (touche :-) :-) - use new smbldap_get_single_pstring
Jeremy Allison [Thu, 11 Mar 2004 23:02:52 +0000 (23:02 +0000)]
Fix bug introduced by Jim (touche :-) :-) - use new smbldap_get_single_pstring
call :-).
Jeremy.
(This used to be commit 3c9fd2bdee097394cb0d0b6683748835c6a2d3a0)

16 years agoRestore the contract on all convert_stringXX() interfaces. Add a "allow_bad_conv"
Jeremy Allison [Thu, 11 Mar 2004 22:59:58 +0000 (22:59 +0000)]
Restore the contract on all convert_stringXX() interfaces. Add a "allow_bad_conv"
boolean parameter that allows broken iconv conversions to work. Gets rid of the
nasty errno checks in mangle_hash2 and check_path_syntax and allows correct
return code checking.
Jeremy.
(This used to be commit 3b4fca7b7f410cb0f11322e22c8f26a662eff941)

16 years agoRestore the contract on all convert_stringXX() interfaces. Add a "allow_bad_conv"
Jeremy Allison [Thu, 11 Mar 2004 22:48:24 +0000 (22:48 +0000)]
Restore the contract on all convert_stringXX() interfaces. Add a "allow_bad_conv"
boolean parameter that allows broken iconv conversions to work. Gets rid of the
nasty errno checks in mangle_hash2 and check_path_syntax and allows correct
return code checking.
Jeremy.
(This used to be commit 7b96765c23637613f079d37566d95d5edd511f05)

16 years agoMerge from 3.0. Fix munged dial in pdb_ldap
Jim McDonough [Thu, 11 Mar 2004 18:10:08 +0000 (18:10 +0000)]
Merge from 3.0.  Fix munged dial in pdb_ldap
(This used to be commit 46544e957f00f71e3a49e3d90cd88b4cf1b33408)