1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

229 Commits

Author SHA1 Message Date
Gerald Carter
9013355807 updating README file after I removed some scripts -
Gerald Carter
7105f4bcab remove rcs tag -
Gerald Carter
29885eae59 removing outdated scripts and adding comments about 'ldap password syc' -
Gerald Carter
5b20494aff add --help to script -
Gerald Carter
5f41cd76b7 sync with changes from Jerome Tournier @ IDEALX; should now work with sambaSamAccount schema -
Gerald Carter
49457669f3 include enhancements from Buchan Milne to generate LDIF modify output in addition to add -
Gerald Carter
25753e2a33 adding old NDS schema so I can update it -
Gerald Carter
766a5070d5 checlking in initial version of 2.2 scripts so I can start updating them -
Gerald Carter
f72f51d39f fix comments about schema dependencies -
Jelmer Vernooij
a1e1421d1e Put 'wins hook' example back in. Fixes bug #268) -
Jelmer Vernooij
f27e696cd3 Add some more new common options -
Jeremy Allison
80e14b1765 Added by request of "Stefan (metze) Metzmacher" <metze@metzemix.de>.
Jeremy.
-
Jeremy Allison
3f8c77b116 Test modules for shadow copy by "Stefan (metze) Metzmacher" <metze@metzemix.de>.
Jeremy.
-
Jim McDonough
c9b209be2b Update my copyrights according to my agreement with IBM -
Andrew Bartlett
9c595c8c23 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
-
Gerald Carter
6237fae9b8 applying fix for group map conversion (patch from Kristyan Osborne) -
Jelmer Vernooij
f3fd321b61 Add DTD used by XML passdb backend -
John Terpstra
56d2049561 This patch is Vorlon's fault! -
Gerald Carter
be82b3d9df fix typo in description -
Gerald Carter
8c18174a89 check that an attribute is defined and not just non-zero -
Jeremy Allison
7c4cc2086d Make skeleton VFSs compile with new EA modules.
Jeremy
-
Gerald Carter
8241758544 working draft of the idmap_ldap code.
Includes sambaUnixIdPool objectclass

Still needs cleaning up wrt to name space.
More changes to come, but at least we now have a
a working distributed winbindd solution.
-
Alexander Bokovoy
fcdf215753 Move VFS example skel.c to two different examples: one for opaque operations and one for transparent. Also add configure support for compiling third-party modules. Patch from Stefan Metzmacher <metze@metzemix.de> -
Gerald Carter
469c5ad1ac moving the sambaAccount objectclass to 'historical' to prevent confusion on which one should be used for new servers. I'll add a note about uncommenting the older items for ldapsam_compat in the release notes -
Gerald Carter
0714dda7cc fix group mapping in LDAP under new schema -
Gerald Carter
925c60f5e2 s/primaryGroupSID/sambaPrimaryGroupSID/ -
Gerald Carter
9cde1aa32a perl script to convert from sambaAccount to sambaSamAccount; requires Net::LDAP::LDIF -
Gerald Carter
998586e652 *****LDAP schema changes*****
New objectclass named sambaSamAccount which uses attribute
prefaced with the phrase 'samba' to prevent future name clashes.

Change in functionality of the 'ldap filter' parameter.  This always
defaults to "(uid=%u)" now and is and'd with the approriate objectclass
depending on whether you are using ldapsam_compat or ldapsam

conversion script for migrating from sambaAccount to
sambaSamAccount will come next.
-
Andrew Bartlett
0e432817cb As discussed on samba-technical - move to 'primaryGroupSid' insted of
primaryGroupID (rid).  This is consistant with the move from 'rid' to ntSid
for the primary user identifier.

Also cope with legacy installations where primaryGroupID might have been
stored as 0.

Andrew Bartlett
-
Gerald Carter
94780f0947 syncing README to go along with scripts -
Gerald Carter
ee1374cabf syncing import/export smbpasswd file scripts from 2.2 -
Jelmer Vernooij
a7520177b0 Don't crash if the underlying VFS doesn't support ACL's -
Jelmer Vernooij
bc4b51bcb2 Use NTSTATUS as return value for smb_register_*() functions and init_module()
function. Patch by metze with some minor modifications.
-
Jelmer Vernooij
e112dc1641 Add example authentication module -
Andrew Bartlett
3e07406ade A new pdb_ldap!
This patch removes 'non unix account range' (same as idra's change in HEAD),
and uses the winbind uid range instead.

More importanly, this patch changes the LDAP schema to use 'ntSid' instead
of 'rid' as the primary attribute.  This makes it in common with the group
mapping code, and should allow it to be used closely with a future idmap_ldap.

Existing installations can use the existing functionality by using the
ldapsam_compat backend, and users who compile with --with-ldapsam will get
this by default.

More importantly, this patch adds a 'sambaDomain' object to our schema -
which contains 2 'next rid' attributes, the domain name and the domain sid.
Yes, there are *2* next rid attributes.  The problem is that we don't 'own'
the entire RID space - we can only allocate RIDs that could be 'algorithmic'
RIDs.  Therefore, we use the fact that UIDs in 'winbind uid' range will be
mapped by IDMAP, not the algorithm.

Andrew Bartlett
-
Jelmer Vernooij
528c56176b Update for the new modules system -
Jelmer Vernooij
bd24443229 Update for new modules system -
Jelmer Vernooij
31ce815283 Replace references to the old textdocs by references to chapters in
the HOWTO Collection.
-
Jelmer Vernooij
0d322968cb Update for the new modules system. Also, use Makefile rather then Makefile.in
because we don't generate Makefile from configure anymore
-
Simo Sorce
a65b54a08e typo -
Gerald Carter
7f0fd03f69 uidPool and gidPool don't use cn anymore (but we don't use thsi anyways) -
Volker Lendecke
5acb9f421c Fix schema error not detected by OpenLDAP 2.0.23 but by 2.1.16.
Volker
-
Volker Lendecke
da83d97eb5 Put group mapping into LDAP.
Volker
-
Tim Potter
81bfd9a4d9 Sync with HEAD. The -L/usr/local/lib bit looks a bit dodgy though. -
Tim Potter
db3901827f Sync with HEAD. -
Tim Potter
902a1dc1d5 Minor merges from HEAD. -
John Terpstra
f6121fb55b Adding genlogon obtained from a a mailing list posting in 2001. -
Gerald Carter
25a9681ddd [merge]
* removed unused variable from rpcclient code
* added container option to net command (patch from SuSE)
* Makefile patch for examples/VFS from SuSE
-
Gerald Carter
cd16064784 removed idpool from schema file (experimental) to remove the dependency
on nis.schema.

add $(LDFLAGS) to libsmbclient build
-
cvs2svn Import User
953ae9d182 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'. -