1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/examples
Andrew Bartlett 4168d61fb2 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 9c595c8c23)
2003-07-04 13:29:42 +00:00
..
appliance Forgot attr entry for private dir. 2000-06-05 13:02:09 +00:00
auth Add example authentication module 2003-04-28 17:14:49 +00:00
autofs 2nd phase of head branch sync with SAMBA_2_0 - this delets all the files that were in the head branch but weren't in SAMBA_2_0 1999-12-13 13:35:20 +00:00
dce-dfs Initial version imported to CVS 1996-05-04 07:50:46 +00:00
genlogon Adding genlogon obtained from a a mailing list posting in 2001. 2003-01-16 05:54:35 +00:00
LDAP This patch cleans up some of our ldap code, for better behaviour: 2003-07-04 13:29:42 +00:00
libsmbclient Sync with HEAD. The -L/usr/local/lib bit looks a bit dodgy though. 2003-01-22 23:51:39 +00:00
misc merge from SAMBA_2_2 2002-07-31 14:56:40 +00:00
ntlogon Latest updates from author. 2002-11-20 00:30:56 +00:00
pdb Add DTD used by XML passdb backend 2003-06-16 21:33:46 +00:00
printer-accounting first pass at updating head branch to be to be the same as the SAMBA_2_0 branch 1999-12-13 13:27:58 +00:00
printing This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 953ae9d182) 2002-12-16 17:26:02 +00:00
simple Modified demo smb.conf to not have /tmp writeable by everyone by default. 1996-07-11 13:56:08 +00:00
svr4-startup SVR4 startup scripts from Timo Knuutila (knuutila@cs.utu.fi) 1996-08-16 07:38:47 +00:00
thoralf - added an entry on WinDD to samba.faq 1996-05-30 03:16:17 +00:00
tridge Initial version imported to CVS 1996-05-04 07:50:46 +00:00
validchars first pass at updating head branch to be to be the same as the SAMBA_2_0 branch 1999-12-13 13:27:58 +00:00
VFS Make skeleton VFSs compile with new EA modules. 2003-06-06 07:09:30 +00:00
README updated the 3.0 branch from the head branch - ready for alpha18 2002-07-15 10:35:28 +00:00
smb.conf.default Replace references to the old textdocs by references to chapters in 2003-04-28 00:57:51 +00:00

Copyright(C) Samba-Team 1993-2001

This directory contains example config files and related material for
Samba. 

At a minimum please refer to the smb.conf.default file for current
information regarding global and share parameter settings.

Send additions to: samba@samba.org