diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-09-12 12:29:21 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-09-12 19:23:04 +0200 |
commit | 0eb281d8f210200025aecb478f818b659ad5b546 (patch) | |
tree | 35708831a323b07baca48d043da42246bab73534 /source4/dsdb/samdb | |
parent | 4ef9760db170bf2ec2aa277426d07c345dd7848b (diff) | |
download | samba-0eb281d8f210200025aecb478f818b659ad5b546.tar.gz samba-0eb281d8f210200025aecb478f818b659ad5b546.tar.bz2 samba-0eb281d8f210200025aecb478f818b659ad5b546.zip |
s4:samldb LDB module - rename "check_SamAccountType" into "check_sAMAccountType"
And a small cosmetic change.
I like to have the real attribute names in the function denominations
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/samldb.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c index 7b1e2b5642..f8122258f3 100644 --- a/source4/dsdb/samdb/ldb_modules/samldb.c +++ b/source4/dsdb/samdb/ldb_modules/samldb.c @@ -198,8 +198,9 @@ static int samldb_check_sAMAccountName(struct samldb_ctx *ac) return samldb_next_step(ac); } +/* sAMAccountType handling */ -static int samldb_check_samAccountType(struct samldb_ctx *ac) +static int samldb_check_sAMAccountType(struct samldb_ctx *ac) { struct ldb_context *ldb; unsigned int account_type; @@ -232,9 +233,7 @@ static int samldb_check_samAccountType(struct samldb_ctx *ac) return ret; } } - } else - if (strcmp("group", ac->type) == 0) { - + } else if (strcmp("group", ac->type) == 0) { group_type = samdb_result_uint(ac->msg, "groupType", 0); if (group_type == 0) { ldb_asprintf_errstring(ldb, @@ -952,7 +951,7 @@ static int samldb_fill_object(struct samldb_ctx *ac, const char *type) if (ret != LDB_SUCCESS) return ret; /* check account_type/group_type */ - ret = samldb_add_step(ac, samldb_check_samAccountType); + ret = samldb_add_step(ac, samldb_check_sAMAccountType); if (ret != LDB_SUCCESS) return ret; /* check if we have a valid primary group ID */ |