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

243 Commits

Author SHA1 Message Date
Andrew Tridgell
dec5b6c40d added a wbtest program that shows how to access winbindd extended nss
functionality directly from an application.

This is under a liberal license as we want application vendors to be
able to use the example code
(This used to be commit 8d848de45d75bf6ac69cb921e04abf36a66117c4)
2003-11-19 08:14:09 +00:00
Richard Sharpe
19aff105aa Add testacl.c ... from Derrell Lipman.
(This used to be commit af42af75a45d6e6538009694704e11eb83c88457)
2003-11-12 21:46:39 +00:00
Jelmer Vernooij
9da5e6a4da Add new fields bad_password_count and logon_count
(This used to be commit 58c21bc0d1e9a39e64ce7b9efd637dc776c06029)
2003-11-09 14:09:27 +00:00
Gerald Carter
3886d6a7a1 added note about stripping comments from LDIF; bug 642
(This used to be commit 3f67b2bbfdbedc76d7265fc5333d5f71577d9c7b)
2003-11-05 04:17:21 +00:00
Richard Sharpe
966a448f93 Apply these patches as well ... not sure if they all build. They don't on
FreeBSD 4.3. They might on Linux.
(This used to be commit 1f115c95d635377a36c0a3a1f56b4b8def04fd7e)
2003-10-24 20:24:05 +00:00
Gerald Carter
79cb5593a8 update smbldap-tool sscripts from Jérôme Tournier
(This used to be commit c1546a5311a4e9ad2d6566e71e11c6d5f8f120a9)
2003-09-23 20:39:22 +00:00
Gerald Carter
af7ed6225c fix from Brad Langhorst to correctly check if the primaryGroupID has been set
(This used to be commit 5c45b799d1b87fed8afa4665e075f2c8ccb6da84)
2003-09-20 15:28:24 +00:00
Gerald Carter
d1b4886688 updates to SunOne DS schema from André Fiebach
(This used to be commit bd9b90a391e3346ff22888bbc589e65ccdddd482)
2003-09-20 15:20:31 +00:00
Gerald Carter
05d50e91cc insert missing sh-bang
(This used to be commit 64fa24dbabd8d211d276e19745561a11b7465158)
2003-09-19 18:53:07 +00:00
Tim Potter
804fca6e49 The -P option to smbclient no longer works - update all smbprint scripts to
remove it.  Closes bug #473.
(This used to be commit a9f22ed9d715e4acf529ff873b0d99d4b29c5f1b)
2003-09-19 01:54:57 +00:00
Jim McDonough
150d3d535c Updated 3.0 schema files for IBM Directory Server 5.1
Keeps with IBM convention of separate attributetype and objectclass definitions.
(This used to be commit 5dcf974c22b4bd54193dff876020bacd5b1691b2)
2003-09-11 18:32:44 +00:00
Gerald Carter
314b7f7cca syncing files
(This used to be commit 88725350d248fe017b77c7609544888ba40b7995)
2003-09-09 03:54:11 +00:00
Gerald Carter
09ea546e5c samba 3.0 schema filr netscape DS 5.x from Darren Chew
(This used to be commit 3f97a5ce47bbdd3010dd8e234a7aa5838b524b46)
2003-09-08 15:59:45 +00:00
Gerald Carter
c7dbe58a36 updated schema for 3.0 for eDirectory 8.7 and Netscape DS 4.x
(This used to be commit c9c7150a627abe93a5d3c866605f2300a3cc5ec9)
2003-09-05 04:09:25 +00:00
Gerald Carter
1e5411ca82 updating README file after I removed some scripts
(This used to be commit 90133558073deb96a0e5baf26e44cf1af1acd538)
2003-08-29 16:56:59 +00:00
Gerald Carter
a75430992f remove rcs tag
(This used to be commit 7105f4bcabb29126999b5494f6d60d6f766ab5cc)
2003-08-28 17:00:36 +00:00
Gerald Carter
b3f1b28e1e removing outdated scripts and adding comments about 'ldap password syc'
(This used to be commit 29885eae591bdbb899d18ac2e7ae355751cd4be6)
2003-08-28 16:38:59 +00:00
Gerald Carter
bdccf7fca8 add --help to script
(This used to be commit 5b20494aff3da9414ac0100220de96750c3f06a3)
2003-08-27 14:44:36 +00:00
Gerald Carter
5e6c6d766f sync with changes from Jerome Tournier @ IDEALX; should now work with sambaSamAccount schema
(This used to be commit 5f41cd76b793305e1e9e4da76d58daa2d8438c63)
2003-08-26 04:36:27 +00:00
Gerald Carter
92d05d1f40 include enhancements from Buchan Milne to generate LDIF modify output in addition to add
(This used to be commit 49457669f32ed1d8122633e2d0abdebaf05790da)
2003-08-26 04:17:05 +00:00
Gerald Carter
873f925a51 adding old NDS schema so I can update it
(This used to be commit 25753e2a336a72dc2275a0046003c3a659a0f880)
2003-08-20 21:53:18 +00:00
Gerald Carter
a750624f4d checlking in initial version of 2.2 scripts so I can start updating them
(This used to be commit 766a5070d58ada7a871a7fab45b5f7e203264952)
2003-08-20 21:52:52 +00:00
Gerald Carter
0722fc16a4 fix comments about schema dependencies
(This used to be commit f72f51d39ff3e6d22dbda8b9c115ca10e93e7022)
2003-08-20 16:08:39 +00:00
Jelmer Vernooij
134e7f948d Put 'wins hook' example back in. Fixes bug #268)
(This used to be commit a1e1421d1ef70088e1cf2308e8cfbf139e25ddaa)
2003-08-14 01:15:42 +00:00
Jelmer Vernooij
225a8ed076 Add some more new common options
(This used to be commit f27e696cd38501754fb996ca3ffbe48b28e861ae)
2003-08-13 04:57:28 +00:00
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
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
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
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
b2c19b7727 s/primaryGroupSID/sambaPrimaryGroupSID/
(This used to be commit 925c60f5e2f5301da90fc26dddc1bad610eea0d0)
2003-05-14 04:49:01 +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
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
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