svn commit: samba r11316 - in branches/SAMBA_4_0/source/passdb: .

abartlet at samba.org abartlet at samba.org
Thu Oct 27 05:31:20 GMT 2005


Author: abartlet
Date: 2005-10-27 05:31:20 +0000 (Thu, 27 Oct 2005)
New Revision: 11316

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

Log:
Kill off a bit more of the old secrets system...

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/passdb/secrets.c


Changeset:
Modified: branches/SAMBA_4_0/source/passdb/secrets.c
===================================================================
--- branches/SAMBA_4_0/source/passdb/secrets.c	2005-10-27 00:05:07 UTC (rev 11315)
+++ branches/SAMBA_4_0/source/passdb/secrets.c	2005-10-27 05:31:20 UTC (rev 11316)
@@ -50,7 +50,7 @@
 /* close the secrets database */
 void secrets_shutdown(void)
 {
-	talloc_free(tdb);
+       talloc_free(tdb);
 }
 
 /* open up the secrets database */
@@ -87,40 +87,6 @@
 	return True;
 }
 
-/* read a entry from the secrets database - the caller must free the result
-   if size is non-null then the size of the entry is put in there
- */
-static void *secrets_fetch(const char *key, size_t *size)
-{
-	TDB_DATA kbuf, dbuf;
-	secrets_init();
-	if (!tdb)
-		return NULL;
-	kbuf.dptr = (uint8_t *)strdup(key);
-	kbuf.dsize = strlen(key);
-	dbuf = tdb_fetch(tdb->tdb, kbuf);
-	if (size)
-		*size = dbuf.dsize;
-	free(kbuf.dptr);
-	return dbuf.dptr;
-}
-
-/************************************************************************
- Routine to fetch the plaintext machine account password for a realm
-the password is assumed to be a null terminated ascii string
-************************************************************************/
-char *secrets_fetch_machine_password(const char *domain)
-{
-	char *key;
-	char *ret;
-	asprintf(&key, "%s/%s", SECRETS_MACHINE_PASSWORD, domain);
-	strupper(key);
-	ret = (char *)secrets_fetch(key, NULL);
-	free(key);
-	return ret;
-}
-
-
 /*
   connect to the schannel ldb
 */



More information about the samba-cvs mailing list