Dear all,
I am facing an error while trying to change the password using change-password plugin.\
I have installed the compatibility plugin priorhand but i have not made any changes to the default file in the compatibility plugin
My ldap is SUNONE LDAP and my squirrelmail is installed on Fedora linux.
The mails are going and coming from this webmail so the read communication is working fine.
But when i try to use this change password plugin it gives me an error
"Ldap bind failed"
My config.php for change_ldap_passwd plugin
####################################################
<?php
$ldap_server = "xxx.xxx.xxx";
$ldap_password_field = "userPassword";
$ldap_user_field = "uid";
//put the ldap base dn of your server here
$ldap_base_dn = "o=xxx.net";
// we first bind to retreive the users full DN for the account by looking up
// the attribute defined above in $ldap_user_field. The account used to do the
// initial lookup is defined in $query_dn and $query_pw. If these vars are
// blank or unset we bind anonymously.
// NOTE: You only need to set values here if you have disabled anonymous queries.
//$query_dn = "cn=Directory Manager,o=xxx.net" ;
//$query_pw = "xyz" ;
// After getting the users DN, we will bind as that DN to verify the password.
// Of course, if the dn is not permitted to bind, this fails. To skip the password
// check via ldap-bind, define $no_bind_as_user
$no_bind_as_user = 0 ;
// We normally change the users password while bound with their dn.
// Of course, if you have'nt permitted the user write access to the password
// field, this won't work. You can either fix the ACL in slapd.conf or the
// equivelent in your LDAP server, or do the insecure thing and bind as the
// manager.
// USE THIS IF YOU DON'T CARE ABOUT SECURITY.
$ldap_bind_as_manager = 1;
$ldap_manager_dn="cn=Directory Manager,o=iqaranew.net";
$ldap_manager_pw="xyz";
//if you're also using LDAP to authenticate samba users, we can sync the samba passwords too
$change_smb=0;
$smb_passwd="/usr/bin/smbpasswd";
// NOTE: set this to the NETBIOS name of your samba host if it is NOT localhost
$smb_host="";
// and maybe you are using samba/ldap authentication, in this case you
// you will need mkntpwd in order to generate the nt/lm password.
// http://www.samba.org/cgi-bin/cvsweb/samba/examples/LDAP/smbldap-tools/mkntpwd/
$change_ldapsmb=0;
$mkntpwd="/usr/bin/mkntpwd";
// NOTE: only for samba-2.2.x or samba-3.x.x in 2.2.x compat mode
//$ldapsmb_lmpassword="lmpassword";
//$ldapsmb_ntpassword="ntpassword";
// NOTE: only for samba-3.x.x (using the new samba.schema)
$ldapsmb_lmpassword="sambalmpassword";
$ldapsmb_ntpassword="sambantpassword";
?>
##############################################################
Plz suggest.
Thanks.
Vivek
- [SM-USERS] change password plugin not working properly vivek sharma sharma
- Re: [SM-USERS] change password plugin not working... Tomas Kuliavas