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

592 Commits

Author SHA1 Message Date
Jeremy Allison
11bf0c0b23 Added by request of "Stefan (metze) Metzmacher" <metze@metzemix.de>.
Jeremy.
(This used to be commit 80e14b176526a3038ea03214fc3dd0fd00fef922)
2003-08-08 00:53:46 +00:00
Jeremy Allison
4d48737782 Test modules for shadow copy by "Stefan (metze) Metzmacher" <metze@metzemix.de>.
Jeremy.
(This used to be commit 3f8c77b116b96b01fd333c4b45d84666ef108fe9)
2003-08-07 21:49:01 +00:00
Jim McDonough
9f2e6167d2 Update my copyrights according to my agreement with IBM
(This used to be commit c9b209be2b17c2e4677cc30b46b1074f48878f43)
2003-08-01 15:21:20 +00:00
Gerald Carter
1caa6b23e4 ading new files from 3.0
(This used to be commit 99feae7b5b1c229a925367b87c0c0f636d9a2d75)
2003-07-16 05:42:34 +00:00
Gerald Carter
4a090ba06a trying to get HEAD building again. If you want the code
prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE
(This used to be commit adb98e7b7cd0f025b52c570e4034eebf4047b1ad)
2003-07-16 05:34:56 +00:00
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 9c595c8c2327b92a86901d84c3f2c284dabd597e)
2003-07-04 13:29:42 +00:00
Gerald Carter
a220e983d0 applying fix for group map conversion (patch from Kristyan Osborne)
(This used to be commit 6237fae9b8407ee04226b984a932150799191d29)
2003-07-01 15:21:43 +00:00
Jelmer Vernooij
540e3f889c Add DTD used by XML passdb backend
(This used to be commit f3fd321b61dbf53b1dc33a42afe8a943c94c1135)
2003-06-16 21:33:46 +00:00
John Terpstra
5d4937c2b6 This patch is Vorlon's fault!
(This used to be commit 56d2049561e5d5c22ac9d76cb013643083d9644e)
2003-06-15 05:14:28 +00:00
Gerald Carter
af0ddc81d8 fix typo in description
(This used to be commit be82b3d9dfef938030731e1021076df4dcfdb443)
2003-06-13 02:53:03 +00:00
Gerald Carter
b93851af13 check that an attribute is defined and not just non-zero
(This used to be commit 8c18174a899e9578e0e82d17c7602e84b342644c)
2003-06-12 13:41:13 +00:00
Jeremy Allison
de3f1c7767 Make skeleton VFSs compile with new EA modules.
Jeremy
(This used to be commit 7c4cc2086d59e163ab89366c24ba399994a49462)
2003-06-06 07:09:30 +00:00
Gerald Carter
3bdfd57a2d 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.
(This used to be commit 824175854421f7c27d31ad673a8790dd018ae350)
2003-06-05 02:34:30 +00:00
Alexander Bokovoy
bee3d8f410 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>
(This used to be commit fcdf215753630d4173e50b7d93d6bc8ba254a5ff)
2003-06-04 13:13:41 +00:00
Gerald Carter
f8a43403de sync LDAP schema with SAMBA_3_0
(This used to be commit 509232dd8d776ec8260a1f0858e1bcc2c1e1f650)
2003-05-22 17:26:44 +00:00
Gerald Carter
c527856774 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
(This used to be commit 469c5ad1acfb452617b10653e06ce3b34ec9e146)
2003-05-22 17:18:35 +00:00
Gerald Carter
e074e1e819 fix group mapping in LDAP under new schema
(This used to be commit 59328b8c8add974c7edaeecdf8eac0fb0d328fc2)
2003-05-14 05:28:45 +00:00
Gerald Carter
df641bc7ca fix group mapping in LDAP under new schema
(This used to be commit 0714dda7cc4a1df73e1b9d11daae80a1f46583de)
2003-05-14 05:28:16 +00:00
Gerald Carter
e375e3935f s/primaryGroupSID/sambaPrimaryGroupSID/
(This used to be commit d6ee6a26523a02834a53f214fd6713f5af591be7)
2003-05-14 04:49:13 +00:00
Gerald Carter
b2c19b7727 s/primaryGroupSID/sambaPrimaryGroupSID/
(This used to be commit 925c60f5e2f5301da90fc26dddc1bad610eea0d0)
2003-05-14 04:49:01 +00:00
Gerald Carter
b088a3c037 perl script to convert from sambaAccount to sambaSamAccount; requires Net::LDAP::LDIF
(This used to be commit 5b6f22f7c986bc423246adeecc0d5a4bd5f307c6)
2003-05-14 04:40:04 +00:00
Gerald Carter
849e0d6895 syncing LDAP schema changes with Samba_3_0
(This used to be commit a1326ea34831bf49942f7bcb954999091c3ea820)
2003-05-14 04:39:55 +00:00
Gerald Carter
b2b381f3a4 perl script to convert from sambaAccount to sambaSamAccount; requires Net::LDAP::LDIF
(This used to be commit 9cde1aa32aed55a3d7cb28881c6acd9800b02065)
2003-05-14 04:37:40 +00:00
Gerald Carter
5d16254f56 *****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.
(This used to be commit 998586e65271daa919e47e1206c0007454cbca66)
2003-05-14 03:32:20 +00:00
Andrew Bartlett
2735fb0119 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
(This used to be commit 0e432817cb927b41af7b49fb0b5081ffdb46f85e)
2003-05-11 05:59:34 +00:00
Gerald Carter
c079ba4e6b syncing README to go along with scripts
(This used to be commit 94780f0947f7ad7d5bc83e61681148637b59d7ab)
2003-05-09 21:52:49 +00:00
Gerald Carter
c37cc212c8 syncing import/export smbpasswd file scripts from 2.2
(This used to be commit ee1374cabf38c3d99e66a45316e232d1c2cfbe6a)
2003-05-09 21:51:57 +00:00
Jelmer Vernooij
9bf2a5bde9 Don't crash if the underlying VFS doesn't support ACL's
(This used to be commit a7520177b088589eec7f3989273020dab89d90b5)
2003-05-01 01:35:56 +00:00
Jelmer Vernooij
4b5d6fa4c1 Don't crash if the underlying VFS doesn't support ACL's
(This used to be commit 277fa587d596449a6ac15b440ae07d6707d758ac)
2003-05-01 01:35:23 +00:00
Andrew Bartlett
a60682e9ab Merge Samba 3.0 pdb_ldap from 3.0 into HEAD, so as to allow idra to continue
his IDMAP work.

This version also works properly (the HEAD version had suffered from bitrot),
and should be a good basis to change into the new IDMAP rules.

It also includes UTF8 conversions.

Included also are the schema changes, and a note about the now very old scripts
in examples/LDAP (they don't work for this, or even the previous schema).

Andrew Bartlett
(This used to be commit 38a8f2b23a12f6a964d447f7904dd722a1ca046c)
2003-04-29 12:54:46 +00:00
Jelmer Vernooij
81256ecbb9 Use NTSTATUS as return value for smb_register_*() functions and init_module()
function. Patch by metze with some minor modifications.
(This used to be commit f4576757d1d52a8f1b96894c869bb76450003fd1)
2003-04-28 18:33:25 +00:00
Jelmer Vernooij
17a3acafa8 Use NTSTATUS as return value for smb_register_*() functions and init_module()
function. Patch by metze with some minor modifications.
(This used to be commit bc4b51bcb2daa7271c884cb83bf8bdba6d3a9b6d)
2003-04-28 17:48:48 +00:00
Jelmer Vernooij
023cd5ff70 Add example auth/ module
(This used to be commit d16f8f661a2a0be4fd89f7469b7e3e6a42860ad2)
2003-04-28 17:15:21 +00:00
Jelmer Vernooij
cff01c538f Add example authentication module
(This used to be commit e112dc1641c47c7185e098918980df1a4d950bd7)
2003-04-28 17:14:49 +00:00
Andrew Bartlett
49530d0db5 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
(This used to be commit 3e07406ade81e136f67439d4f8fd7fe1dbb6db14)
2003-04-28 10:20:55 +00:00
Jelmer Vernooij
3786533880 Update for the new modules system
(This used to be commit 528c56176b186d9fa43f6a0c9831562c123ec25d)
2003-04-28 01:24:26 +00:00
Jelmer Vernooij
4a6eb741f0 Update for new modules system
(This used to be commit bd2444322956cd34a95159114547b5ddc804df9e)
2003-04-28 01:21:59 +00:00
Jelmer Vernooij
9b93eb6f82 Update for new modules system
(This used to be commit 765d87838dbf25ba69dc11f7956ce5814555bcc7)
2003-04-28 01:21:28 +00:00
Jelmer Vernooij
616f6b6ffe Replace references to the old textdocs by references to chapters in
the HOWTO Collection.
CVS: ----------------------------------------------------------------------
CVS: Enter Log.  Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS:  Tag: SAMBA_3_0
CVS: 	smb.conf.default
CVS: ----------------------------------------------------------------------
(This used to be commit 280d627adb5305e8b814102aaa73825023c00571)
2003-04-28 00:58:10 +00:00
Jelmer Vernooij
bceae6bb99 Replace references to the old textdocs by references to chapters in
the HOWTO Collection.
(This used to be commit 31ce815283fcf81cf50f8026a91da04ea4a05071)
2003-04-28 00:57:51 +00:00
Jelmer Vernooij
ff09ef629a Update for the new modules system. Also, use Makefile rather then Makefile.in
because we don't generate Makefile from configure anymore
(This used to be commit 0d322968cbf445df79153c0abc0d041edcf223ee)
2003-04-28 00:52:02 +00:00
Jelmer Vernooij
1c34cd359a Update for the new modules system. Also, use Makefile rather then Makefile.in
because we don't generate Makefile from configure anymore.
(This used to be commit 29ba1e163f85aeaa3cd48a13e4f0a039fa80e7b0)
2003-04-28 00:49:49 +00:00
Simo Sorce
07b95a90ca typo
(This used to be commit a65b54a08eace793e23b8d6bc193b81ef08f77f5)
2003-04-27 11:24:58 +00:00
Gerald Carter
7d1ea0987d uidPool and gidPool don't use cn anymore (but we don't use thsi anyways)
(This used to be commit 4c92994dfd231acb09411f89fd67a21a40400de0)
2003-04-18 22:19:51 +00:00
Gerald Carter
a53c63f99e uidPool and gidPool don't use cn anymore (but we don't use thsi anyways)
(This used to be commit 7f0fd03f699f24094e32a92dbb0ec55d9a602c36)
2003-04-18 22:19:04 +00:00
Jim McDonough
77dc0bc6bf The ldap idmap backend from Anthony Liguori (aliguori@us.ibm.com):
This patch moves the ldap routines out of passdb into a generic
library and implements an LDAP backend for IDMAP.  THe backend
can be enabled with "idmap backend = ldap" in smb.conf.  THere
are also schema changes to make sure to update teh ldap schema files.
(This used to be commit 87c7c582c60521da3a93d997386fe79935012aea)
2003-04-03 03:30:25 +00:00
Richard Sharpe
60cf0f28ce Fix some uncleanness with testsmbc.c
(This used to be commit 73ef6d35bbadc3ea549309119857effe3c1bc7ef)
2003-03-28 21:12:11 +00:00
Volker Lendecke
878f9147bf Fix schema error not detected by OpenLDAP 2.0.23 but by 2.1.16.
Volker
(This used to be commit 5acb9f421c149126370e79d66d3d9ace6be9a695)
2003-03-27 14:25:30 +00:00
Volker Lendecke
3aded92028 Fix schema error not detected by OpenLDAP 2.0.23 but by 2.1.16.
Volker
(This used to be commit e92bfb766b08abccbf098c8d04347eb296b9be54)
2003-03-27 14:12:42 +00:00
Volker Lendecke
7679811afb Put group mapping into LDAP.
Volker
(This used to be commit da83d97eb50c3c3a67985e22410842100207431f)
2003-03-19 09:43:23 +00:00