株式会社タフス

solaris /etc/shadow ユーザーアカウントとパスワードをLDAPに移行

centos上でopenldap-serversパッケージを使用し
Solaris-UNIXアカウントで稼動中の、メールユーザーをLDPAへ移行

1.OpenLDAPサーバーインストール
# yum install openldap-servers

2.移行ツールをtar保存
# tar zcvf usr-share-openldap.tgz /usr/share/openldap/*

3.solarisへ展開
稼働中のSolarisメールサーバー上に
上記のtgzを保存しておく

# gzip -dc usr-share-openldap.tgz | tar xvf –

4.移行ツールの実行
# chmod 755 /usr/share/openldap/migration/migrate_passwd.pl
# /usr/share/openldap/migration/migrate_passwd.pl /etc/passwd > userlist-solaris.txt

出力されたuserlist-solaris.txtを元に
LDIFを作成しLDAP登録するだけ

後はpostfixやdovecotの設定がされていれば
solarisのユーザーパスワードで
メール受信できます。