From 0b3fb7e04d3d572541a0dc4335e72b3fa776c810 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 12 Jan 2006 03:07:04 +0000 Subject: r12860: Remove unused function. (we handle this in the password_hash module). Andrew Bartlett (This used to be commit daa4b76800024c1494eeda675c46af3790fac788) --- source4/dsdb/samdb/ldb_modules/samba3sam.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'source4/dsdb/samdb') diff --git a/source4/dsdb/samdb/ldb_modules/samba3sam.c b/source4/dsdb/samdb/ldb_modules/samba3sam.c index 429710c2c5..3f593235fa 100644 --- a/source4/dsdb/samdb/ldb_modules/samba3sam.c +++ b/source4/dsdb/samdb/ldb_modules/samba3sam.c @@ -46,28 +46,6 @@ /* In Samba4 but not in Samba3: */ -static void generate_hashes (struct ldb_module *module, const char *local_attr, const struct ldb_message *local, struct ldb_message *remote_mp, struct ldb_message *remote_fb) -{ - const char *upwd = ldb_msg_find_string(local, local_attr, NULL); - struct ldb_val val; - - if (!upwd) - return; - - ldb_msg_add_string(remote_fb, local_attr, upwd); - - val.length = 16; - val.data = talloc_zero_size(module, val.length); - - E_md4hash(upwd, val.data); - ldb_msg_add_value(remote_mp, "sambaNTPassword", &val); - - val.data = talloc_zero_size(module, val.length); - E_deshash(upwd, val.data); - ldb_msg_add_value(remote_mp, "sambaLMPassword", &val); -} - - static struct ldb_message_element *generate_primaryGroupID(struct ldb_module *module, TALLOC_CTX *ctx, const char *attr, const struct ldb_message *remote) { struct ldb_message_element *el; -- cgit