From 39f86619f5f30461d3c1896e88b6b3df2b51a26e Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Tue, 9 Nov 2010 18:42:26 +0100 Subject: s4:local_password LDB module - remove schema checking code and fix some typos This is now done by the "objectclass_attrs" LDB module. --- source4/dsdb/samdb/ldb_modules/local_password.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'source4/dsdb/samdb') 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) { -- cgit