svn commit: samba r9414 - in branches/SAMBA_4_0/source/lib: .

abartlet at samba.org abartlet at samba.org
Sat Aug 20 06:01:49 GMT 2005


Author: abartlet
Date: 2005-08-20 06:01:49 +0000 (Sat, 20 Aug 2005)
New Revision: 9414

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9414

Log:
Fix failure to find own domain info due to recent ldb_dn upgrade - we
don't use a simple char* here any more.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/lib/credentials.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/credentials.c
===================================================================
--- branches/SAMBA_4_0/source/lib/credentials.c	2005-08-20 06:00:50 UTC (rev 9413)
+++ branches/SAMBA_4_0/source/lib/credentials.c	2005-08-20 06:01:49 UTC (rev 9414)
@@ -496,7 +496,6 @@
 	struct ldb_context *ldb;
 	int ldb_ret;
 	struct ldb_message **msgs;
-	const char *base_dn = SECRETS_PRIMARY_DOMAIN_DN;
 	const char *attrs[] = {
 		"secret",
 		"samAccountName",
@@ -527,7 +526,8 @@
 
 	/* search for the secret record */
 	ldb_ret = gendb_search(ldb,
-			       mem_ctx, base_dn, &msgs, attrs,
+			       mem_ctx, ldb_dn_explode(mem_ctx, SECRETS_PRIMARY_DOMAIN_DN), 
+			       &msgs, attrs,
 			       SECRETS_PRIMARY_DOMAIN_FILTER, 
 			       cli_credentials_get_domain(cred));
 	if (ldb_ret == 0) {



More information about the samba-cvs mailing list