diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-09 18:42:26 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-11 10:03:39 +0100 |
commit | 39f86619f5f30461d3c1896e88b6b3df2b51a26e (patch) | |
tree | a505291c5942b98f0521780e7d1c63d995beee14 /source4/dsdb/samdb/ldb_modules/local_password.c | |
parent | ed704c28b2f24228b61dee21d873f6b09bf98ca4 (diff) | |
download | samba-39f86619f5f30461d3c1896e88b6b3df2b51a26e.tar.gz samba-39f86619f5f30461d3c1896e88b6b3df2b51a26e.tar.bz2 samba-39f86619f5f30461d3c1896e88b6b3df2b51a26e.zip |
s4:local_password LDB module - remove schema checking code and fix some typos
This is now done by the "objectclass_attrs" LDB module.
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/local_password.c')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/local_password.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/local_password.c b/source4/dsdb/samdb/ldb_modules/local_password.c index f544689b8b..c0e1e9a4bb 100644 --- a/source4/dsdb/samdb/ldb_modules/local_password.c +++ b/source4/dsdb/samdb/ldb_modules/local_password.c @@ -39,13 +39,15 @@ #define PASSWORD_GUID_ATTR "masterGUID" -/* This module maintains a local password database, seperate from the main LDAP server. +/* This module maintains a local password database, separate from the main LDAP + server. - This allows the password database to be syncronised in a multi-master + This allows the password database to be synchronised in a multi-master fashion, seperate to the more difficult concerns of the main - database. (With passwords, the last writer always wins) + database. (With passwords, the last writer always wins) - Each incoming add/modify is split into a remote, and a local request, done in that order. + Each incoming add/modify is split into a remote, and a local request, done + in that order. We maintain a list of attributes that are kept locally - perhaps this should use the @KLUDGE_ACL list of passwordAttribute @@ -173,14 +175,6 @@ static int local_password_add(struct ldb_module *module, struct ldb_request *req return ldb_next_request(module, req); } - /* TODO: remove this when userPassword will be in schema */ - if (!ldb_msg_check_string_attribute(req->op.add.message, "objectClass", "person")) { - ldb_asprintf_errstring(ldb, - "Cannot relocate a password on entry: %s, does not have objectClass 'person'", - ldb_dn_get_linearized(req->op.add.message->dn)); - return LDB_ERR_OBJECT_CLASS_VIOLATION; - } - /* From here, we assume we have password attributes to split off */ ac = lpdb_init_context(module, req); if (!ac) { |