From ae4eb2c239275b188844598a6a307351b2f8b4a7 Mon Sep 17 00:00:00 2001 From: jengo Date: Tue, 31 Oct 2000 11:55:05 +0000 Subject: [PATCH] Cleaned up a little code --- admin/inc/accounts_ldap.inc.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/admin/inc/accounts_ldap.inc.php b/admin/inc/accounts_ldap.inc.php index 54e4715ab7..6db8bf4ae4 100644 --- a/admin/inc/accounts_ldap.inc.php +++ b/admin/inc/accounts_ldap.inc.php @@ -108,16 +108,8 @@ function account_add($account_info) { global $phpgw_info, $phpgw, $ldap; - - if ($phpgw_info["server"]["ldap_encryption_type"] == "DES") { - $salt = $phpgw->common->randomstring(2); - $account_info["passwd"] = $phpgw->common->des_cryptpasswd($account_info["passwd"], $salt); - } - - if ($phpgw_info["server"]["ldap_encryption_type"] == "MD5") { - $salt = $phpgw->common->randomstring(9); - $account_info["passwd"] = $phpgw->common->md5_cryptpasswd($account_info["passwd"], $salt); - } + + $account_info["passwd"] = $phpgw->common->encrypt_password($account_info["passwd"]); // This method is only temp. We need to figure out the best way to assign uidnumbers and // guidnumbers.