svn commit: samba r11592 - in
branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules: .
tridge at samba.org
tridge at samba.org
Wed Nov 9 05:19:58 GMT 2005
Author: tridge
Date: 2005-11-09 05:19:57 +0000 (Wed, 09 Nov 2005)
New Revision: 11592
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11592
Log:
fixed a crash bug from the ldb_result changes (res was being used after being freed)
Modified:
branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c
Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c 2005-11-09 02:13:53 UTC (rev 11591)
+++ branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samldb.c 2005-11-09 05:19:57 UTC (rev 11592)
@@ -129,17 +129,15 @@
struct ldb_result *res = NULL;
int ret = 0;
- local_ctx = talloc_named(mem_ctx, 0, "samldb_search_domain memory conext");
+ local_ctx = talloc_new(mem_ctx);
if (local_ctx == NULL) return NULL;
sdn = ldb_dn_copy(local_ctx, dn);
do {
ret = ldb_search(module->ldb, sdn, LDB_SCOPE_BASE, "objectClass=domain", NULL, &res);
- talloc_free(res);
-
+ talloc_steal(local_ctx, res);
if (ret == LDB_SUCCESS && res->count == 1)
break;
-
} while ((sdn = ldb_dn_get_parent(local_ctx, sdn)));
if (ret != LDB_SUCCESS || res->count != 1) {
@@ -451,6 +449,10 @@
return NULL;
}
+ /*
+ useraccountcontrol: setting value 0 gives 0x200 for users
+ */
+
/* TODO: objectCategory, userAccountControl, badPwdCount, codePage, countryCode, badPasswordTime, lastLogoff, lastLogon, pwdLastSet, primaryGroupID, accountExpires, logonCount */
return msg2;
More information about the samba-cvs
mailing list