ira/wip.git
17 years agoi guess i'm the only one this ever annyoed...
Gerald Carter [Thu, 10 Jul 2003 20:37:01 +0000 (20:37 +0000)]
i guess i'm the only one this ever annyoed...

fix the confusion when we tdb_lock_bystring() but
we retrieve an entry using tdb_fetch_by_string.
It's now always tdb.*bystring()
(This used to be commit 66359531b89368939f0e8f584a45844b5f2f99e7)

17 years agoFinal piece of support needed to find iconv libraries on FreeBSD.
Richard Sharpe [Thu, 10 Jul 2003 17:39:05 +0000 (17:39 +0000)]
Final piece of support needed to find iconv libraries on FreeBSD.

This has been tested on RedHat 9.0 with libiconv built in as well as
FreeBSD 4.6.2 with iconv-2.0.3 and biconv.g/libbiconv.

We should perhaps also check for other conversions that just ASCII<-->UCS-2LE
especially because those two names do not appear in charset.aliases for
iconv-2.0.3.
(This used to be commit 53d953da10dbfaf778907f19115e127c5aac1da8)

17 years agoFix a small problem I seem to have introduced into aclocal.m4
Richard Sharpe [Thu, 10 Jul 2003 15:23:09 +0000 (15:23 +0000)]
Fix a small problem I seem to have introduced into aclocal.m4
(This used to be commit b6bb70ea1e2eefbb538290a987390728f002ceac)

17 years agopdbedit should not call idmap anymore. Otherwise pdbedit -L would
Volker Lendecke [Thu, 10 Jul 2003 14:21:43 +0000 (14:21 +0000)]
pdbedit should not call idmap anymore. Otherwise pdbedit -L would
allocate id's.

Volker
(This used to be commit 0358cc76757e7ef06dada94ec3a73cd90a525ba9)

17 years agoAdd const
Volker Lendecke [Thu, 10 Jul 2003 14:12:37 +0000 (14:12 +0000)]
Add const
(This used to be commit 2f7658d9ba1f43fb2d14adc4af7b681634ab5cb2)

17 years agoFix shadow parameter warning.
Tim Potter [Thu, 10 Jul 2003 08:27:55 +0000 (08:27 +0000)]
Fix shadow parameter warning.
(This used to be commit 8d8d85ecd62dba075d90e54ec75da9b1328784fb)

17 years agoFix a small spelling mistake and push out the new version of aclocal.m4 to
Richard Sharpe [Wed, 9 Jul 2003 23:01:08 +0000 (23:01 +0000)]
Fix a small spelling mistake and push out the new version of aclocal.m4 to
properly handle iconv on FreeBSD ...

It works on Linux and FreeBSD ...
(This used to be commit 9302401f543bd3684657b38f046dc52a5a732035)

17 years agoDon't print status message for every smb.conf option processed - it makes tracking...
Jelmer Vernooij [Wed, 9 Jul 2003 19:11:38 +0000 (19:11 +0000)]
Don't print status message for every smb.conf option processed - it makes tracking down errors difficult
(This used to be commit bfa1a247b088735a5a5b891a831acdd9188b78c7)

17 years agoFirst results of 'make undocumented' - fix some typos and remove obsolete option
Jelmer Vernooij [Wed, 9 Jul 2003 19:07:06 +0000 (19:07 +0000)]
First results of 'make undocumented' - fix some typos and remove obsolete option
(This used to be commit 522e5cca1b44a0295bce928a2d2e13017204536b)

17 years agoMove find_missing_doc.pl to the docs system
Jelmer Vernooij [Wed, 9 Jul 2003 18:51:18 +0000 (18:51 +0000)]
Move find_missing_doc.pl to the docs system
(This used to be commit 087e9af450109d749bfcc3016494d920b6028bf1)

17 years agoAdd make target 'undocumented'
Jelmer Vernooij [Wed, 9 Jul 2003 18:50:17 +0000 (18:50 +0000)]
Add make target 'undocumented'
(This used to be commit 2eaaa3fe69b282f54922b05d20d59f326740f662)

17 years agoBe less verbose, support outputting all types of variables(both G and S)
Jelmer Vernooij [Wed, 9 Jul 2003 18:31:43 +0000 (18:31 +0000)]
Be less verbose, support outputting all types of variables(both G and S)
(This used to be commit 20e07f8bfa09031bc1c852444f33c2fc4fa52654)

17 years agoUpdate for docbook XML
Jelmer Vernooij [Wed, 9 Jul 2003 18:31:03 +0000 (18:31 +0000)]
Update for docbook XML
(This used to be commit a61804b5ebc48ac9b9eb5f9b82d47fb4cf78f944)

17 years agoLarge set of changes to add UNIX account/group management
Gerald Carter [Wed, 9 Jul 2003 16:44:47 +0000 (16:44 +0000)]
Large set of changes to add UNIX account/group management
to winbindd.  See README.idmap-and-winbind-changes for details.
(This used to be commit 1111bc7b0c7165e1cdf8d90eb49f4c368d2eded6)

17 years agomore compile fixes for become/unbecome_root()
Gerald Carter [Wed, 9 Jul 2003 03:32:07 +0000 (03:32 +0000)]
more compile fixes for become/unbecome_root()
(This used to be commit f005f1cf12b839f3985ab00315da63c584ce803e)

17 years agofix linking issues in winbindd with become/unbecome_root() in passdb.c
Gerald Carter [Wed, 9 Jul 2003 03:25:39 +0000 (03:25 +0000)]
fix linking issues in winbindd with become/unbecome_root() in passdb.c
(This used to be commit 389fe1e51abb533a781f69731a75771cb846d850)

17 years agoGet rid of DISP_USER_INFO/DISP_GROUP_INFO as they serve no useful
Jeremy Allison [Wed, 9 Jul 2003 00:23:42 +0000 (00:23 +0000)]
Get rid of DISP_USER_INFO/DISP_GROUP_INFO as they serve no useful
purpose. Replace with an array of SAM_ACCOUNT/DOMAIN_GRP entries.
ZERO struct's in smbd/uid.c stops core dumps when sid_to_XX
functions fail. Getting ready to add caching.
Jeremy.
(This used to be commit 9d0692a54fe2cb087f25796ec2ab5e1d8433e388)

17 years agoFix up become_root/unbecome_root pairs needed around local passdb
Jeremy Allison [Wed, 9 Jul 2003 00:20:43 +0000 (00:20 +0000)]
Fix up become_root/unbecome_root pairs needed around local passdb
lookups.
Jeremy.
(This used to be commit 6bd47884030c9c124c4bba1f0d57cb8dd916530d)

17 years agoEnsure we correctly test for errors in uid/gid_to sid.
Jeremy Allison [Wed, 9 Jul 2003 00:01:40 +0000 (00:01 +0000)]
Ensure we correctly test for errors in uid/gid_to sid.
Jeremy.
(This used to be commit f3c2e73a8c1c592d407542c12c0a445103415bc0)

17 years agoMoved SAM_ACCOUNT marshall/unmarshall functions to make them externally
Jeremy Allison [Tue, 8 Jul 2003 21:58:29 +0000 (21:58 +0000)]
Moved SAM_ACCOUNT marshall/unmarshall functions to make them externally
available. Removed extra auth_init (thanks metze).
Jeremy.
(This used to be commit 88135fbc4998c266052647f8b8e437ac01cf50ae)

17 years agostandlone servers don't have any trusted domains
Gerald Carter [Tue, 8 Jul 2003 17:19:37 +0000 (17:19 +0000)]
standlone servers don't have any trusted domains
(This used to be commit 4acdfc5c944aa8830d6cec7bd1225200448e45c5)

17 years agofix bone head mistake when setting the uid in the server_info struct.
Gerald Carter [Tue, 8 Jul 2003 17:04:11 +0000 (17:04 +0000)]
fix bone head mistake when setting the uid in the server_info struct.
(This used to be commit 43f21078ec0f885d4d1a0b90476b55f8f92de9e7)

17 years agoInitialise the uid and gid values to a safe default in make_server_info()
Tim Potter [Tue, 8 Jul 2003 05:37:13 +0000 (05:37 +0000)]
Initialise the uid and gid values to a safe default in make_server_info()
(This used to be commit 3a1f4f5ea5379b0deb6dc6b8ed81dedc3a08f70e)

17 years agofix some formatting
Gerald Carter [Tue, 8 Jul 2003 03:16:28 +0000 (03:16 +0000)]
fix some formatting
(This used to be commit fca08b1c8766ef1961a9dedc127224249cac9543)

17 years agofix temporary bug so people can test 3.0 again; make sure to initialize the uid for...
Gerald Carter [Tue, 8 Jul 2003 02:19:16 +0000 (02:19 +0000)]
fix temporary bug so people can test 3.0 again; make sure to initialize the uid for the server_info struct
(This used to be commit 6a84297da53e8658f4bcfa4951ceed011b69201f)

17 years agoSpelling.
Tim Potter [Tue, 8 Jul 2003 01:04:06 +0000 (01:04 +0000)]
Spelling.
(This used to be commit a9a3339b2d99dcb64b675b27255d4aa5959a1caf)

17 years agoFix spotted by Nadav Danieli <nadavd@exanet.com> - ensure dev and inode
Jeremy Allison [Mon, 7 Jul 2003 22:29:40 +0000 (22:29 +0000)]
Fix spotted by Nadav Danieli <nadavd@exanet.com> - ensure dev and inode
to fix open mode race condition.
Jeremy.
(This used to be commit cbde1c8dfcd9d3bef956fe073e7108a54b48844b)

17 years agoFix the build...
Jeremy Allison [Mon, 7 Jul 2003 21:00:33 +0000 (21:00 +0000)]
Fix the build...
Jeremy.
(This used to be commit 61e9c49cd67e73260738ca2482aa8f8dc5ce7366)

17 years agoFix from MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp> for new MB statcache
Jeremy Allison [Mon, 7 Jul 2003 20:22:35 +0000 (20:22 +0000)]
Fix from MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp> for new MB statcache
code. Bug #185.
Jeremy.
(This used to be commit 7a1ac7be42dfb90fd44f2c51810eedcea052386b)

17 years agoanother compile fix
Gerald Carter [Mon, 7 Jul 2003 20:13:59 +0000 (20:13 +0000)]
another compile fix
(This used to be commit 8b52802e5d27bfc2d9dff2f4700e182c33f2b130)

17 years agofix some compile problems. Can't get IDMAP_OBJ our of proto.h
Gerald Carter [Mon, 7 Jul 2003 20:11:53 +0000 (20:11 +0000)]
fix some compile problems.  Can't get IDMAP_OBJ our of proto.h
just yet.

`
(This used to be commit 6f0b5d474a051db512db2f73a8097c80964ec513)

17 years agoCleaning up linking issues. sam/idmap*.c only links in
Gerald Carter [Mon, 7 Jul 2003 20:00:29 +0000 (20:00 +0000)]
Cleaning up linking issues.  sam/idmap*.c only links in
winbindd now.  Also removing an unused file.
(This used to be commit 688369c23c604e9b6654fcf07190d2e27c1138cf)

17 years agoFixed a couple of const issues with the new code.
Jeremy Allison [Mon, 7 Jul 2003 17:04:48 +0000 (17:04 +0000)]
Fixed a couple of const issues with the new code.
Jeremy.
(This used to be commit e9fb6e45086a6170b6f6d5d3295398708ab1af58)

17 years agotemporarily disable a sanity check to prevent winbindd from deadlocking
Gerald Carter [Mon, 7 Jul 2003 05:28:51 +0000 (05:28 +0000)]
temporarily disable a sanity check to prevent winbindd from deadlocking
on a Samba PDC.  Will be re-enabled after winbind_passdb is done.
(This used to be commit c4762aa3bc0d5d2dc5161b543b22808a369e0698)

17 years agoand so it begins....
Gerald Carter [Mon, 7 Jul 2003 05:11:10 +0000 (05:11 +0000)]
and so it begins....

* remove idmap_XX_to_XX calls from smbd.  Move back to the
  the winbind_XXX and local_XXX calls used in 2.2

* all uid/gid allocation must involve winbindd now

* move flags field around in winbindd_request struct

* add WBFLAG_QUERY_ONLY option to winbindd_sid_to_[ug]id()
  to prevent automatic allocation for unknown SIDs

* add 'winbind trusted domains only' parameter to force a domain member
  server to use matching users names from /etc/passwd for its domain
  (needed for domain member of a Samba domain)

* rename 'idmap only' to 'enable rid algorithm' for better clarity
  (defaults to "yes")

code has been tested on

  * domain member of native mode 2k domain
  * ads domain member of native mode 2k domain
  * domain member of NT4 domain
  * domain member of Samba domain
  * Samba PDC running winbindd with trusts

Logons tested using 2k clients and smbclient as domain users
and trusted users. Tested both 'winbind trusted domains only = [yes|no]'

This will be a long week of changes.  The next item on the list is
winbindd_passdb.c & machine trust accounts not in /etc/passwd (done
via winbindd_passdb)
(This used to be commit 8266dffab4aedba12a33289ff32880037ce950a8)

17 years agoCall the synchronous version of the ldap delete function otherwise we end up
Tim Potter [Mon, 7 Jul 2003 02:50:09 +0000 (02:50 +0000)]
Call the synchronous version of the ldap delete function otherwise we end up
treating the returned message id as an error code.
(This used to be commit 42fdcef324d7a04e69c0078482e1a6b8a67ade94)

17 years agoAdding profile acls man entry for smb.conf.5
John Terpstra [Sun, 6 Jul 2003 06:56:58 +0000 (06:56 +0000)]
Adding profile acls man entry for smb.conf.5
(This used to be commit 80709d4304a02ca99853df009c5641e65b0ab12b)

17 years agoFix ldapsam_getsampwsid to correctly only say 'no such user' when indeed there
Andrew Bartlett [Sun, 6 Jul 2003 06:18:54 +0000 (06:18 +0000)]
Fix ldapsam_getsampwsid to correctly only say 'no such user' when indeed there
is no such user...

Thanks to jerry for spotting this.

Also clean up the function a bit, to avoid this happening again...

Andrew Bartlett
(This used to be commit d9a6859e2bd963f28cf3c3a62e483e868822597f)

17 years agoThis changes our Unix primary GID behaviour back to what most people expect:
Andrew Bartlett [Sun, 6 Jul 2003 05:51:20 +0000 (05:51 +0000)]
This changes our Unix primary GID behaviour back to what most people expect:

Samba will now use the user's UNIX primary group, as the primary group when
dealing with the filesystem.  The NT primary group is ignored in unix.

For the NT_TOKEN, the primary group is the NT priamry group, and the unix
primary group is added to the NT_TOKEN as a supplementary group.

This should fix bug #109, but will need to be revisited when we get a full
NT group database.

Also in this commit:
 - Fix debug statements in service.c
 - Make idmap_ldap show if it's adding, or modifying an existing DN
 - Make idmap_ldap show both the error message and error string
(This used to be commit 32e455a714b2090fcfd1f6d73daccf600c15d51b)

17 years agoThis parameter is unused.
Andrew Bartlett [Sat, 5 Jul 2003 13:51:54 +0000 (13:51 +0000)]
This parameter is unused.

Andrew Bartlett
(This used to be commit 3dd767841666068a1b32c71b03a8e7bc797087be)

17 years agoFix comment
Andrew Bartlett [Sat, 5 Jul 2003 11:04:09 +0000 (11:04 +0000)]
Fix comment
(This used to be commit f7bf48114cec83a3f3107cce2b413221276a486d)

17 years agoAdd some debug statments to our vampire code - try to make it easier to track
Andrew Bartlett [Sat, 5 Jul 2003 10:39:41 +0000 (10:39 +0000)]
Add some debug statments to our vampire code - try to make it easier to track
down failures.

Add a 'auto-add on modify' feature to guestsam

Fix some segfault bugs on no-op idmap modifications, and on new idmappings that
do not have a DN to tack onto.

Make the 'private data' a bit more robust.

Andrew Bartlett
(This used to be commit 6c48309cda9538da5a32f3d88a7bb9c413ae9e8e)

17 years agoFixes to our LDAP/vampire codepaths:
Andrew Bartlett [Sat, 5 Jul 2003 09:46:12 +0000 (09:46 +0000)]
Fixes to our LDAP/vampire codepaths:

 - Try better to add the appropriate mapping between UID and SIDs, based
   on Get_Pwnam()
 - Look for previous users (lookup by SID) and correctly modify the existing
   entry in that case
 - Map the root user to the Admin SID as a 'well known user'
 - Save the LDAPMessage result on the SAM_ACCOUNT for use in the next 'update'
   call on that user.  This means that VL's very nice work on atomic LDAP
   updates now really gets used properly!
 - This also means that we know the right DN to update, without the extra
   round-trips to the server.

Andrew Bartlett
(This used to be commit c7118cb31dac24db3b762fe68ce655b17ea102e0)

17 years agoPAM should operate on the Unix username, not the NT username (which might not
Andrew Bartlett [Sat, 5 Jul 2003 08:05:06 +0000 (08:05 +0000)]
PAM should operate on the Unix username, not the NT username (which might not
have the domain\ qualification).

Andrew Bartlett
(This used to be commit 7cfa1e7c4abee10fe8c75e36aee68ee9f557656e)

17 years agoAllow modification of an existing entry.
Andrew Bartlett [Sat, 5 Jul 2003 05:19:28 +0000 (05:19 +0000)]
Allow modification of an existing entry.

We still have a lot of work to do to allow this in quite the same way as we
have in the TDB, but it certainly is getting closer.

Andrew Bartlett
(This used to be commit b9ef4e138843e3a9d1157e197de0964daf29f0dd)

17 years agoFix typos
Jelmer Vernooij [Sat, 5 Jul 2003 01:52:55 +0000 (01:52 +0000)]
Fix typos
(This used to be commit 1a6cdbddbd008c9fe5255ed29871f9a3172fec6b)

17 years agoUpdate from Andrew Bartlett with documentation for
Jelmer Vernooij [Sat, 5 Jul 2003 01:50:16 +0000 (01:50 +0000)]
Update from Andrew Bartlett with documentation for
'client lanman auth' and 'client ntlmv2 auth'
(This used to be commit 60f0934a6dc7a34dad42ba86744a1e3426e99967)

17 years agoClear up the difference between 'smb signing' and 'sign&seal' - which has to
Andrew Bartlett [Sat, 5 Jul 2003 01:25:10 +0000 (01:25 +0000)]
Clear up the difference between 'smb signing' and 'sign&seal' - which has to
this point referred to schannel.

Andrew Bartlett
(This used to be commit b67479076ddf0c51bc7e319d7fc91a5da52eb8bf)

17 years agoAdd smb_event_id to list of return types (patch from metze)
Jelmer Vernooij [Fri, 4 Jul 2003 21:24:31 +0000 (21:24 +0000)]
Add smb_event_id to list of return types (patch from metze)
(This used to be commit 95c4c801fe80a4d8fce366e63b7f92cbf24930e5)

17 years agoMore conversions I missed. Thanks metze.
Jeremy Allison [Fri, 4 Jul 2003 18:52:31 +0000 (18:52 +0000)]
More conversions I missed. Thanks metze.
Jeremy.
(This used to be commit 4f78d747e66b38edcd2a5754681f9a01aeaf7864)

17 years agoFixed strlower changes I missed. Pointed out by metze.
Jeremy Allison [Fri, 4 Jul 2003 18:50:21 +0000 (18:50 +0000)]
Fixed strlower changes I missed. Pointed out by metze.
Jeremy
(This used to be commit da5ee2b765fc321b14e92eb27bde8ec8930b61d4)

17 years agoDon't allow RIDs (in our domain) below 1000 (or algorithmic rid base) to be
Andrew Bartlett [Fri, 4 Jul 2003 14:03:29 +0000 (14:03 +0000)]
Don't allow RIDs (in our domain) below  1000 (or algorithmic rid base) to be
mapped with the rid algorithm.

Instead, a uid/gid from the UID/GID range will be allocated for this RID.

Andrew Bartlett
(This used to be commit 68245e9cfae9a8cb663503301c21498dd9a3a560)

17 years agoUpdate WHATSNEW with the further LDAP schema changes in previous commit.
Andrew Bartlett [Fri, 4 Jul 2003 13:35:35 +0000 (13:35 +0000)]
Update WHATSNEW with the further LDAP schema changes in previous commit.

Andrew Bartlett
(This used to be commit 81f84cc57fb39cc8d5edf8cf1005159c67031142)

17 years agoThis patch cleans up some of our ldap code, for better behaviour:
Andrew Bartlett [Fri, 4 Jul 2003 13:29:42 +0000 (13:29 +0000)]
This patch cleans up some of our ldap code, for better behaviour:

We now always read the Domain SID out of LDAP.  If the local secrets.tdb
is ever different to LDAP, it is overwritten out of LDAP.   We also
store the 'algorithmic rid base' into LDAP, and assert if it changes.
(This ensures cross-host synchronisation, and allows for possible
integration with idmap).  If we fail to read/add the domain entry, we just
fallback to the old behaviour.

We always use an existing DN when adding IDMAP entries to LDAP, unless
no suitable entry is available.  This means that a user's posixAccount
will have a SID added to it, or a user's sambaSamAccount will have a UID
added.  Where we cannot us an existing DN, we use
'sambaSid=S-x-y-z,....' as the DN.

The code now allows modifications to the ID mapping in many cases.

Likewise, we now check more carefully when adding new user entires to LDAP,
to not duplicate SIDs (for users, at this stage), and to add the sambaSamAccount
onto the idmap entry for that user, if it is already established (ensuring
we do not duplicate sambaSid entries in the directory).

The allocated UID code has been expanded to take into account the space
between '1000 - algorithmic rid base'.  This much better fits into what
an NT4 does - allocating in the bottom part of the RID range.

On the code cleanup side of things, we now share as much code as
possible between idmap_ldap and pdb_ldap.

We also no longer use the race-prone 'enumerate all users' method for
finding the next RID to allocate.  Instead, we just start at the bottom
of the range, and increment again if the user already exists.  The first
time this is run, it may well take a long time, but next time will just
be able to use the next Rid.

Thanks to metze and AB for double-checking parts of this.

Andrew Bartlett
(This used to be commit 9c595c8c2327b92a86901d84c3f2c284dabd597e)

17 years agoFix memleak in groupdb. Spotted by Metze
Alexander Bokovoy [Fri, 4 Jul 2003 09:56:50 +0000 (09:56 +0000)]
Fix memleak in groupdb. Spotted by Metze
(This used to be commit 5280c6953195c2664628ecaab59ea82b4863e8f7)

17 years agoDisplay libraries detected by configure but before configure
Tim Potter [Fri, 4 Jul 2003 03:03:47 +0000 (03:03 +0000)]
Display libraries detected by configure but before configure
summary as suggested by abartlet.
(This used to be commit 7b2c6181b17a0d62043569ffa49cdf6c5b0b6859)

17 years agoDebian updates.
Eloy Paris [Fri, 4 Jul 2003 01:51:06 +0000 (01:51 +0000)]
Debian updates.
(This used to be commit c14fca49e99395c064b0365e902dd97119974bb6)

17 years agoRemoved strupper/strlower macros that automatically map to strupper_m/strlower_m.
Jeremy Allison [Thu, 3 Jul 2003 19:11:31 +0000 (19:11 +0000)]
Removed strupper/strlower macros that automatically map to strupper_m/strlower_m.
I really want people to think about when they're using multibyte strings.
Jeremy.
(This used to be commit ff222716a08af65d26ad842ce4c2841cc6540959)

17 years agoFix for bug #199 (xp driver uploads). Needed to support
Gerald Carter [Thu, 3 Jul 2003 17:18:07 +0000 (17:18 +0000)]
Fix for bug #199 (xp driver uploads).  Needed to support
the "OSVersion" print server data value.
(This used to be commit 02bc7be1ac6b75bf6559ea684bbc89ab3e19402e)

17 years agofix for bug #200. flush connections if the machine trsut account
Gerald Carter [Thu, 3 Jul 2003 16:23:11 +0000 (16:23 +0000)]
fix for bug #200.  flush connections if the machine trsut account
changed underneath us.
(This used to be commit 6a1ad1ded1d619394ed4ca9e05fdffaa3b902b3b)

17 years agoMissed this in the previous patch - we now have a seperate idea of the
Andrew Bartlett [Thu, 3 Jul 2003 14:56:04 +0000 (14:56 +0000)]
Missed this in the previous patch - we now have a seperate idea of the
'unix username' from the NT username, in the auth subsystem at least.

Andrew Bartlett
(This used to be commit df1aa2a669edc9f26007595411720742d7dff5d9)

17 years agoThis patch takes the work the jerry did for beta2, and generalises it:
Andrew Bartlett [Thu, 3 Jul 2003 14:36:42 +0000 (14:36 +0000)]
This patch takes the work the jerry did for beta2, and generalises it:

 - The 'not implmented' checks are now done by all auth modules
 - the ntdomain/trustdomain/winbind modules are more presise as to
   what domain names they can and cannot handle
 - The become_root() calls are now around the winbind pipe opening only,
   not the entire auth call
 - The unix username is kept seperate from the NT username, removing the
   need for 'clean off the domain\' in parse_net.c
 - All sid->uid translations are now validated with getpwuid() to put a very
   basic stop to logins with 'half deleted' accounts.

Andrew Bartlett
(This used to be commit 85f88191b9927cc434645ef4c1eaf5ec0e8af2ec)

17 years agoSome fixes for ads printer publish:
Tim Potter [Thu, 3 Jul 2003 05:58:55 +0000 (05:58 +0000)]
Some fixes for ads printer publish:

  - check error return for cli_full_connection() when trying to obtain
    printer data

  - check error return on ads_find_machine_acct()

  - Minor reformatting to separate fetching printer data from publishing it
(This used to be commit 94fe3b2cdfa67c9d74edc00a436b5eacbf3e0dc4)

17 years agoImplemented 'net ads printer search' which searches the directory for
Tim Potter [Thu, 3 Jul 2003 05:08:51 +0000 (05:08 +0000)]
Implemented 'net ads printer search' which searches the directory for
published printers.

At the moment we don't search using any parameters but this can be
fixed by changing the LDAP search string.  Also we should contact
the global catalog at SRV _gc._tcp instead of the ldap server we
get back from ads_startup().
(This used to be commit 814519c5de7f962623163b732c8589abd355d845)

17 years agofix bug #190; WINS server was getting marked as dead when it was not.
Gerald Carter [Thu, 3 Jul 2003 04:54:49 +0000 (04:54 +0000)]
fix bug #190; WINS server was getting marked as dead when it was not.
(This used to be commit fa354f3ceefe53bdfd4f543559041d337b75613f)

17 years agoFix bug in doxygen comments for ads search functions.
Tim Potter [Thu, 3 Jul 2003 04:12:54 +0000 (04:12 +0000)]
Fix bug in doxygen comments for ads search functions.
(This used to be commit ae6c05ea726da13fc1a18398d1ffe56f34e1edb9)

17 years agoMore Debian updates.
Eloy Paris [Thu, 3 Jul 2003 04:06:28 +0000 (04:06 +0000)]
More Debian updates.
(This used to be commit 1f7de8c42e05c70cdb76c4f917b7ff128f5249e6)

17 years agowell this was easy...
Gerald Carter [Thu, 3 Jul 2003 03:56:16 +0000 (03:56 +0000)]
well this was easy...

When winbindd is running on a PDC the SAM_ACCOUNT for a trusted user
has a username of DOMAIN\user.  Make sure to trim the domain part
from the username when filling in the net_sam_logon reply.
This fixes the browsing issues i was seen across domain trusts.
(This used to be commit 62e36e6ede067ace23f5473d04917c7eeedf07e2)

17 years agoDebian updates.
Eloy Paris [Thu, 3 Jul 2003 02:43:49 +0000 (02:43 +0000)]
Debian updates.
(This used to be commit 617902427688de58b21c176e060b9b678ebfcd10)

17 years agoFix for idmap startup bug with remote ldap backend.
Jeremy Allison [Wed, 2 Jul 2003 22:32:05 +0000 (22:32 +0000)]
Fix for idmap startup bug with remote ldap backend.
Jeremy.
(This used to be commit 16a5461dd36f138a1bb1e3a2b70d4000bba0c980)

17 years agoFixing problems in the iconv discovery stuff in configure.in.
Richard Sharpe [Wed, 2 Jul 2003 21:15:59 +0000 (21:15 +0000)]
Fixing problems in the iconv discovery stuff in configure.in.

This is the first part of the fix that at least allows configure to
walk the list of supplied locations where libiconv etc might be found.

aclocal.m4 also needs a fix, as does a later test.
(This used to be commit 20786543139c546d112f8f6b6d4d796ee7fed609)

17 years agoAdded fix for Japanese case names in statcache - these can change
Jeremy Allison [Wed, 2 Jul 2003 20:01:51 +0000 (20:01 +0000)]
Added fix for Japanese case names in statcache - these can change
size on upper casing. Based on patch from monyo@home.monyo.com.
Jeremy.
(This used to be commit 72e382e99b92666acdaf50a040b14aa16d48b80d)

17 years agoPropagate changes to WHATSNEW.txt from release tree so that they would not be out...
Alexander Bokovoy [Wed, 2 Jul 2003 04:37:48 +0000 (04:37 +0000)]
Propagate changes to WHATSNEW.txt from release tree so that they would not be out of sync with reality.
(This used to be commit 8deb6370efe9ca6baac54dc5d0b0a3df04d8258f)

17 years agoSAMBA_3_0 will now become beta3
Gerald Carter [Wed, 2 Jul 2003 03:40:06 +0000 (03:40 +0000)]
SAMBA_3_0 will now become beta3
beta2 is captured in the release branch
(This used to be commit 4b3a15917dd6935353d8998e918c750a6c090671)

17 years agoThe default_realm parameter needs to be set in a minimal krb5.conf.
Tim Potter [Wed, 2 Jul 2003 03:07:20 +0000 (03:07 +0000)]
The default_realm parameter needs to be set in a minimal krb5.conf.
(This used to be commit 32e872f23d573057b9719e8ef37c2bdbd3e12194)

17 years agoFix poptOption definition for --no-pass and --kerberos options. The 'value'
Tim Potter [Wed, 2 Jul 2003 03:04:15 +0000 (03:04 +0000)]
Fix poptOption definition for --no-pass and --kerberos options.  The 'value'
field for an option should be set to an identifier to use in a switch
statement or zero if the the arg field is to be updated only.

This fixes smbclient -k always prompting for a password which we don't need.
(This used to be commit 0744e2dad372904a554019146ff6f6e31ca1b2d2)

17 years agoSuggest the user runs kinit if smbclient -k returns NT_STATUS_MORE_PROCESSING_REQUIRED.
Tim Potter [Wed, 2 Jul 2003 03:01:27 +0000 (03:01 +0000)]
Suggest the user runs kinit if smbclient -k returns NT_STATUS_MORE_PROCESSING_REQUIRED.
(This used to be commit 66c4beb28672ef335ff4d6d6a3447e4c2c337f76)

17 years agoUpdate my email address.
Tim Potter [Wed, 2 Jul 2003 01:37:18 +0000 (01:37 +0000)]
Update my email address.
(This used to be commit 9648e9762561296c33401079389b5d201d1e8a2f)

17 years agoUppercase first letter of debug level 0 statements.
Tim Potter [Wed, 2 Jul 2003 01:23:13 +0000 (01:23 +0000)]
Uppercase first letter of debug level 0 statements.
(This used to be commit 05679968e207f795237bbee7b6564f365415d02f)

17 years ago#ifdef out apparently unused function.
Tim Potter [Wed, 2 Jul 2003 01:09:17 +0000 (01:09 +0000)]
#ifdef out apparently unused function.
(This used to be commit 9324703066cfdcb65208420a12e4ab8f358ccc09)

17 years agoRegenerate manpages
Jelmer Vernooij [Wed, 2 Jul 2003 00:57:34 +0000 (00:57 +0000)]
Regenerate manpages
(This used to be commit ace326ffe5adc957f4e058926e5af4e0c97bd892)

17 years agoWhitespace reformat before applying a patch.
Jeremy Allison [Wed, 2 Jul 2003 00:08:29 +0000 (00:08 +0000)]
Whitespace reformat before applying a patch.
Jeremy.
(This used to be commit bbe1276b516e1803a4a9285691674784b989b72f)

17 years agoregenerate docs
Jelmer Vernooij [Tue, 1 Jul 2003 22:58:52 +0000 (22:58 +0000)]
regenerate docs
(This used to be commit cc02d3bc170fe5c8c4474156edb6c83720a47aa0)

17 years agoFix for bug 189 from MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>. Incorrect
Jeremy Allison [Tue, 1 Jul 2003 22:07:27 +0000 (22:07 +0000)]
Fix for bug 189 from MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>. Incorrect
call for Japanese characters.
Jeremy.
(This used to be commit c6de5df01d470c2dab48cdd6298f450fa94f9a8e)

17 years agoAdding jcmd's share ACL on XP patch. Thanks Jim !
Jeremy Allison [Tue, 1 Jul 2003 21:47:13 +0000 (21:47 +0000)]
Adding jcmd's share ACL on XP patch. Thanks Jim !
Jeremy.
(This used to be commit 7ed1118ae61a13de2c781a94fc2394090efd1f9b)

17 years agoGenerate docs.
Jelmer Vernooij [Tue, 1 Jul 2003 21:46:11 +0000 (21:46 +0000)]
Generate docs.
(This used to be commit 4255b96134e4cd8cbb29219ac2702ad8346f62f8)

17 years agoUse entities
Jelmer Vernooij [Tue, 1 Jul 2003 21:23:13 +0000 (21:23 +0000)]
Use entities
(This used to be commit d2ceb1ada0e8ae4b0154904ab450c3153e679feb)

17 years agoFix some syntax errors and typo's
Jelmer Vernooij [Tue, 1 Jul 2003 21:21:03 +0000 (21:21 +0000)]
Fix some syntax errors and typo's
(This used to be commit 371c9796bb3d6c0705f2e5af055a713cc9b4a652)

17 years agoAdding idmap uid/gid smb.conf man page entries. Marking winbind uid/gid as deprecated.
John Terpstra [Tue, 1 Jul 2003 21:10:25 +0000 (21:10 +0000)]
Adding idmap uid/gid smb.conf man page entries. Marking winbind uid/gid as deprecated.
(This used to be commit 8bfaf39680ea1fa2a347fa19052f69d6789ed99d)

17 years agoFix a typo
Jelmer Vernooij [Tue, 1 Jul 2003 21:00:50 +0000 (21:00 +0000)]
Fix a typo
(This used to be commit aba86db38f2f930d2f7d9d1f9bb70d1eaa3118c0)

17 years agoDocument "client use spnego"
Jelmer Vernooij [Tue, 1 Jul 2003 20:58:55 +0000 (20:58 +0000)]
Document "client use spnego"
(This used to be commit b7b45794c233e37d3b78db19852ef1d44d63288c)

17 years agosync with release branch
Gerald Carter [Tue, 1 Jul 2003 20:41:50 +0000 (20:41 +0000)]
sync with release branch
(This used to be commit 57f9333668cc56f338d8b2252a6217612b694a9f)

17 years agoJMCD's fixes also.
John Terpstra [Tue, 1 Jul 2003 20:33:52 +0000 (20:33 +0000)]
JMCD's fixes also.
(This used to be commit adc1ca8fccbae8452026b66a473b72f459ac33ff)

17 years agoFix typos, add a little clarification.
John Terpstra [Tue, 1 Jul 2003 20:29:38 +0000 (20:29 +0000)]
Fix typos, add a little clarification.
(This used to be commit 8a063280cd7d547944f5c61a94a601c09fac53db)

17 years agobeing a responsible developer for a change. Make sure to
Gerald Carter [Tue, 1 Jul 2003 18:34:31 +0000 (18:34 +0000)]
being a responsible developer for a change.  Make sure to
update the docs wrt to the recent code changes.

Can someone regenerate these in the SAMBA_3_0 tree please?
Thanks.
(This used to be commit ba448e6eb866d70daf5fe629c0f1c8c5afb1d312)

17 years agosyncing newer files to SAMBA_3_0
Gerald Carter [Tue, 1 Jul 2003 18:09:29 +0000 (18:09 +0000)]
syncing newer files to SAMBA_3_0
(This used to be commit 1bd76a320e92b4c9d5de6ffceaf5f6ebac1ad459)

17 years agoremoving nisplussam
Gerald Carter [Tue, 1 Jul 2003 18:08:11 +0000 (18:08 +0000)]
removing nisplussam
(This used to be commit f75683995cf0d17df55a70dacd72ab2d6cd17989)

17 years ago* fixed volker's wbinfo -a lockup again. This one was my fault.
Gerald Carter [Tue, 1 Jul 2003 17:51:52 +0000 (17:51 +0000)]
* fixed volker's wbinfo -a lockup again.  This one was my fault.
  It was caused by the winbind_ping() call in is_trusted_domain()

  o if we are a DC then we check our own direct trust relationships
    we have to rely on winbindd to update the truatdom_cache
  o if we are a domain member, then we can update the trustdom_cache
    ourselves if winbindd is not there
(This used to be commit 22dfcafb37f7109dc455f4fb6323a25ba4f097bc)

17 years agoinitial draft of changeset
Gerald Carter [Tue, 1 Jul 2003 16:57:38 +0000 (16:57 +0000)]
initial draft of changeset
(This used to be commit 0988e30ceaa76a165130e2fcb1785f2fac398b28)

17 years agoapplying fix for group map conversion (patch from Kristyan Osborne)
Gerald Carter [Tue, 1 Jul 2003 15:21:43 +0000 (15:21 +0000)]
applying fix for group map conversion (patch from Kristyan Osborne)
(This used to be commit 6237fae9b8407ee04226b984a932150799191d29)