diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-01-12 03:07:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:50:54 -0500 |
commit | 0b3fb7e04d3d572541a0dc4335e72b3fa776c810 (patch) | |
tree | 1f692da83a7e3cb4e8bf3a299f53eb4846c40228 /source4/dsdb/samdb | |
parent | dfd9b2d88344ed0341195c177624c0e5cbf8c841 (diff) | |
download | samba-0b3fb7e04d3d572541a0dc4335e72b3fa776c810.tar.gz samba-0b3fb7e04d3d572541a0dc4335e72b3fa776c810.tar.bz2 samba-0b3fb7e04d3d572541a0dc4335e72b3fa776c810.zip |
r12860: Remove unused function. (we handle this in the password_hash module).
Andrew Bartlett
(This used to be commit daa4b76800024c1494eeda675c46af3790fac788)
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/samba3sam.c | 22 |
1 files changed, 0 insertions, 22 deletions
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; |