Migration User Webmin/Virtualmin from /etc/passwd to LDAP

9:16 PM 0 Comments


  1. Give password for LDAP
    # slappasswd
    New password: 
    Re-enter new password: 
    {SSHA}ntokc0c+JJwxXWqoAI17EqX7UvNMzXQd
  2. Edit File /etc/openldap/slapd.conf
    suffix          "dc=jaringankantor,dc=com"
    rootdn          "cn=Manager,dc=jaringankantor,dc=com"
    rootpw          "{SSHA}ntokc0c+JJwxXWqoAI17EqX7UvNMzXQd"
  3. Restart LDAP
    # service ldap restart
  4. 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";
  5. Make root.ldif File
    # /usr/share/openldap/migration/migrate_base.pl > root.ldif
  6. Input root.ldif file to LDAP
    # ldapadd -x -D "cn=Manager,dc=jaringankantor,dc=com" -f root.ldif -W
  7. Migration user /etc/passwd to user.ldif
    # /usr/share/openldap/migration/migrate_passwd.pl /etc/passwd user.ldif
  8. Input user.ldif to LDAP
    # ldapadd -x -D "cn=Manager,dc=jaringankantor,dc=com" -f user.ldif -W
  9. Migration group /etc/group to group.ldif
    # /usr/share/openldap/migration/migrate_group.pl /etc/group group.ldif
  10. Input group.ldif to LDAP
    # ldapadd -x -D "cn=Manager,dc=jaringankantor,dc=com" -f group.ldif -W
  11. Login To Webmin/Virtualmin
  12. 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
  13. Open Webmin > System > LDAP Client > LDAP Search Base
    Global search base : dc=jaringankantor,dc=com
    Search depth : Entire Subtree
    Click Save
  14. 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
  15. Open Webmin > System > LDAP Client > Validate Configuration
    Finding LDAP base for users ..
    .. found base dc=jaringankantor,dc=com.
    Connecting to LDAP server ..
    .. connected to 127.0.0.1
    Searching 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!
  16. Open Virtualmin > System Setting > Virtualmin Configuration
    Store users and groups: in LDAP
    Click Save
  17. Finish

Salam hangat Nur Cholikul Anwar ^_^

Install Server Networking Programming

Support you how to install server, networking and Programming Easy

0 comments:

You can post comment with english language or indonesia language.
Anda bisa memberikan komentar dalam bahasa inggris atau bahasa indonesia.