How To Change Password Users Active Directory/Samba4 via Web using LDAP ToolBox

Home » Samba » How To Change Password Users Active Directory/Samba4 via Web using LDAP ToolBox
Samba 6 Comments

Few days ago, i am perform migrating from old Samba4 to new Samba4 on my client in Palmerah, Jakarta, Indonesia. They have php application that developed by previous vendor on old Samba4. The php application is used for change password Samba4 users. Overall, Samba4 could be migrated with other application to the new Samba4 server. But the php application could not migrate caused by different OS that used on new Samba4 (old server using CentOS and new server using SLES).

For replace the php application, i am looking for other application who has the same function. Finally, i am obtain LDAP ToolBox (LTB) who has the same function to replace the php application. This is what i do on new Samba4 server. On this article, i am using SLES on my system. You can adjust with system you are using

# Install Apache and dependencies

zypper in apache2 apache2-mod_php53 php53-mcrypt php53-ldap php53-openssl

# Download LTB

cd /srv/www/htdocs
wget -c http://tools.ltb-project.org/attachments/download/497/ltb-project-self-service-password-0.8.tar.gz

# Extract, and configure LTB

tar -zxvf ltb-project-self-service-password-0.8.tar.gz
mv ltb-project-self-service-password-0.8 ltb
vi /srv/www/htdocs/ltb/conf/config.inc.php

Adjust the following configuration with your system

$ldap_url = "ldap://samba4.imanudin.net";
$ldap_binddn = "cn=Administrator,cn=Users,dc=imanudin,dc=net";
$ldap_bindpw = "VerySecret";
$ldap_base = "dc=imanudin,dc=net";
$ldap_login_attribute = "sAMAccountName";
$ldap_fullname_attribute = "cn";
$ldap_filter = "(&(objectClass=user)(sAMAccountName={login}))";
$ad_mode = true;
$who_change_password = "manager";

Note : on this section, LTB is configured on the same machine with Samba4

# Save and restart Apache

service apache2 restart

Please access your LTB/Samba4 server at URL http://samba4.imanudin.net/ltb and try to change password Samba4 users

ssp-change-password

Change Password

ssp-change-password-success

Change Password Success

Finally, i could change password Samba4/Active Directory via Web and could replace old php application

Good luck and hopefully useful 😀

6 thoughts on - How To Change Password Users Active Directory/Samba4 via Web using LDAP ToolBox

LEAVE A COMMENT