Migration User Webmin/Virtualmin from /etc/passwd to LDAP
- Give password for LDAP
# slappasswdNew password: Re-enter new password: {SSHA}ntokc0c+JJwxXWqoAI17EqX7UvNMzXQd
- Edit File /etc/openldap/slapd.conf
suffix "dc=jaringankantor,dc=com" rootdn "cn=Manager,dc=jaringankantor,dc=com" rootpw "{SSHA}ntokc0c+JJwxXWqoAI17EqX7UvNMzXQd"
- Restart LDAP
# service ldap restart
- Edit File /usr/share/openldap/migration/migrate_common.ph (OR /usr/share/migrationtools/migrate_common.ph)
$DEFAULT_MAIL_DOMAIN = "jaringankantor.com"; $DEFAULT_BASE = "dc=jaringankantor,dc=com";
- Make root.ldif File
# /usr/share/openldap/migration/migrate_base.pl > root.ldif
- Input root.ldif file to LDAP
# ldapadd -x -D "cn=Manager,dc=jaringankantor,dc=com" -f root.ldif -W
- Migration user /etc/passwd to user.ldif
# /usr/share/openldap/migration/migrate_passwd.pl /etc/passwd user.ldif
- Input user.ldif to LDAP
# ldapadd -x -D "cn=Manager,dc=jaringankantor,dc=com" -f user.ldif -W
- Migration group /etc/group to group.ldif
# /usr/share/openldap/migration/migrate_group.pl /etc/group group.ldif
- Input group.ldif to LDAP
# ldapadd -x -D "cn=Manager,dc=jaringankantor,dc=com" -f group.ldif -W
- Login To Webmin/Virtualmin
- Open Webmin > System > LDAP Client > LDAP Server Configuration
Login for root user : cn=Manager,dc=pnj,dc=ac,dc=id
Password for root user : YourPassword
Click Save - Open Webmin > System > LDAP Client > LDAP Search Base
Global search base : dc=jaringankantor,dc=com
Search depth : Entire Subtree
Click Save - Open Webmin > System > LDAP Client > Services Using LDAP
Unix users: First data source : LDAP
Unix shadow passwords: First data source : LDAP
Unix Group: First data source : LDAP - Open Webmin > System > LDAP Client > Validate ConfigurationFinding LDAP base for users ..
.. found base dc=jaringankantor,dc=com.Connecting to LDAP server ..
.. connected to 127.0.0.1Searching for users ..
.. found 7269 users.Checking Unix users service ..
.. service is setup to query LDAP.Your system has been successfully configured as an LDAP client! - Open Virtualmin > System Setting > Virtualmin Configuration
Store users and groups: in LDAP
Click Save - Finish
Salam hangat Nur Cholikul Anwar ^_^
0 comments:
You can post comment with english language or indonesia language.
Anda bisa memberikan komentar dalam bahasa inggris atau bahasa indonesia.