diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-02-08 11:42:28 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2004-02-08 11:42:28 +0000 |
commit | cfd8958091b84d90e4a823faadcc3fa05a67e4ac (patch) | |
tree | e82c42d195f2f3606e6fe079f95fd894795a940c /source3/passdb | |
parent | f97d6e76fb6e4030ca2a56598f9bb81cbd622f8d (diff) | |
download | samba-cfd8958091b84d90e4a823faadcc3fa05a67e4ac.tar.gz samba-cfd8958091b84d90e4a823faadcc3fa05a67e4ac.tar.bz2 samba-cfd8958091b84d90e4a823faadcc3fa05a67e4ac.zip |
(merge from 3.0)
I should have done this years ago...
This adds the very simple 'admin set password' capability to 'net rpc',
much as we have it for 'net ads'.
Andrew Bartlett
(This used to be commit 5243b89e33efd2ea8842a624d8abd6c5755afb64)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_ldap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index dcb2040530..3db0702c92 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -911,7 +911,7 @@ static BOOL init_ldap_from_sam (struct ldapsam_privates *ldap_state, || (lp_ldap_passwd_sync()!=LDAP_PASSWD_SYNC_ONLY)) { if (need_update(sampass, PDB_LMPASSWD)) { - uchar *lm_pw = pdb_get_lanman_passwd(sampass); + const uchar *lm_pw = pdb_get_lanman_passwd(sampass); if (lm_pw) { pdb_sethexpwd(temp, lm_pw, pdb_get_acct_ctrl(sampass)); @@ -925,7 +925,7 @@ static BOOL init_ldap_from_sam (struct ldapsam_privates *ldap_state, } } if (need_update(sampass, PDB_NTPASSWD)) { - uchar *nt_pw = pdb_get_nt_passwd(sampass); + const uchar *nt_pw = pdb_get_nt_passwd(sampass); if (nt_pw) { pdb_sethexpwd(temp, nt_pw, pdb_get_acct_ctrl(sampass)); |