summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-02-04 11:41:22 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-02-04 11:41:22 +0000
commitf125759072b78ed598ee288843e8709c867ac2da (patch)
treee52c8c560c0fe68cb01ab6bbf71eb5798431fe55 /source3
parentccaf0e7fb11ea5faa752bd6dfddfa3d9fe62b92d (diff)
downloadsamba-f125759072b78ed598ee288843e8709c867ac2da.tar.gz
samba-f125759072b78ed598ee288843e8709c867ac2da.tar.bz2
samba-f125759072b78ed598ee288843e8709c867ac2da.zip
Fix const warning
(This used to be commit 7a36cc4ac0ff4d9c42eb9ddaf41bf33b4e8cd7c6)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_ldap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 099283f625..0cdbdf0f26 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -913,7 +913,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));
@@ -927,7 +927,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));