1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

r12860: Remove unused function. (we handle this in the password_hash module).

Andrew Bartlett
(This used to be commit daa4b76800024c1494eeda675c46af3790fac788)
This commit is contained in:
Andrew Bartlett 2006-01-12 03:07:04 +00:00 committed by Gerald (Jerry) Carter
parent dfd9b2d883
commit 0b3fb7e04d

View File

@ -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;