svn commit: samba r23514 - in branches: SAMBA_3_0/source/libads SAMBA_3_0_26/source/libads

jra at samba.org jra at samba.org
Sat Jun 16 00:39:53 GMT 2007


Author: jra
Date: 2007-06-16 00:39:52 +0000 (Sat, 16 Jun 2007)
New Revision: 23514

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

Log:
Remove unused function ads_get_dn_from_extended_dn().
Jeremy.

Modified:
   branches/SAMBA_3_0/source/libads/ldap.c
   branches/SAMBA_3_0_26/source/libads/ldap.c


Changeset:
Modified: branches/SAMBA_3_0/source/libads/ldap.c
===================================================================
--- branches/SAMBA_3_0/source/libads/ldap.c	2007-06-15 23:52:01 UTC (rev 23513)
+++ branches/SAMBA_3_0/source/libads/ldap.c	2007-06-16 00:39:52 UTC (rev 23514)
@@ -2769,35 +2769,6 @@
 }
 
 /**
- * pull a dn from an extended dn string
- * @param mem_ctx TALLOC_CTX 
- * @param extended_dn string
- * @param dn pointer to the dn
- * @return boolean inidicating success
- **/
-BOOL ads_get_dn_from_extended_dn(TALLOC_CTX *mem_ctx, 
-				 const char *extended_dn,
-				 char **dn)
-{
-	char *p;
-	pstring tok;
-
-	if (!extended_dn) {
-		return False;
-	}
-
-	while (next_token(&extended_dn, tok, ";", sizeof(tok))) {
-		p = tok;
-	}
-
-	if ((*dn = talloc_strdup(mem_ctx, p)) == NULL) {
-		return False;
-	}
-
-	return True;
-}
-
-/**
  * pull a DOM_SID from an extended dn string
  * @param mem_ctx TALLOC_CTX 
  * @param extended_dn string

Modified: branches/SAMBA_3_0_26/source/libads/ldap.c
===================================================================
--- branches/SAMBA_3_0_26/source/libads/ldap.c	2007-06-15 23:52:01 UTC (rev 23513)
+++ branches/SAMBA_3_0_26/source/libads/ldap.c	2007-06-16 00:39:52 UTC (rev 23514)
@@ -2769,35 +2769,6 @@
 }
 
 /**
- * pull a dn from an extended dn string
- * @param mem_ctx TALLOC_CTX 
- * @param extended_dn string
- * @param dn pointer to the dn
- * @return boolean inidicating success
- **/
-BOOL ads_get_dn_from_extended_dn(TALLOC_CTX *mem_ctx, 
-				 const char *extended_dn,
-				 char **dn)
-{
-	char *p;
-	pstring tok;
-
-	if (!extended_dn) {
-		return False;
-	}
-
-	while (next_token(&extended_dn, tok, ";", sizeof(tok))) {
-		p = tok;
-	}
-
-	if ((*dn = talloc_strdup(mem_ctx, p)) == NULL) {
-		return False;
-	}
-
-	return True;
-}
-
-/**
  * pull a DOM_SID from an extended dn string
  * @param mem_ctx TALLOC_CTX 
  * @param extended_dn string



More information about the samba-cvs mailing list