summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-13 22:13:37 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-13 20:55:18 +0000
commit8c21a45e5c19e21961f234f6ef5c0810928b10ed (patch)
tree36f5f8627d1d41114a1394a0ca66544c03888ef4 /source4/dsdb/samdb
parente13b934355b63e3425382f469dccd20e58c80737 (diff)
downloadsamba-8c21a45e5c19e21961f234f6ef5c0810928b10ed.tar.gz
samba-8c21a45e5c19e21961f234f6ef5c0810928b10ed.tar.bz2
samba-8c21a45e5c19e21961f234f6ef5c0810928b10ed.zip
s4:samldb LDB module - cosmetic fixups
- Update the module description - Fix indentation Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Wed Oct 13 20:55:18 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samldb.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c
index 4d7b8a1b6d..53099f03b1 100644
--- a/source4/dsdb/samdb/ldb_modules/samldb.c
+++ b/source4/dsdb/samdb/ldb_modules/samldb.c
@@ -24,7 +24,7 @@
*
* Component: ldb samldb module
*
- * Description: add embedded user/group creation functionality
+ * Description: various internal DSDB triggers - most for SAM specific objects
*
* Author: Simo Sorce
*/
@@ -166,14 +166,14 @@ static int samldb_check_sAMAccountName(struct samldb_ctx *ac)
{
struct ldb_context *ldb = ldb_module_get_ctx(ac->module);
const char *name;
- int ret;
+ int ret;
- if (ldb_msg_find_element(ac->msg, "sAMAccountName") == NULL) {
- ret = samldb_generate_sAMAccountName(ldb, ac->msg);
- if (ret != LDB_SUCCESS) {
- return ret;
- }
- }
+ if (ldb_msg_find_element(ac->msg, "sAMAccountName") == NULL) {
+ ret = samldb_generate_sAMAccountName(ldb, ac->msg);
+ if (ret != LDB_SUCCESS) {
+ return ret;
+ }
+ }
name = ldb_msg_find_attr_as_string(ac->msg, "sAMAccountName", NULL);
if (name == NULL) {
@@ -321,7 +321,7 @@ static int samldb_find_for_defaultObjectCategory(struct samldb_ctx *ac)
struct ldb_context *ldb = ldb_module_get_ctx(ac->module);
struct ldb_result *res;
const char *no_attrs[] = { NULL };
- int ret;
+ int ret;
ac->res_dn = NULL;