SHA or SSHA を用いた userPassword の作り方

参考 http://developer.iplanet.com/docs/technote/ldap/pass_sha.html
DS の version によって微妙にコマンドの使い方が違うので注意。

  1. 使うコマンド $NSHOME/bin/slapd/server/pwdhash
    (例 /usr/iplanet/servers/slpd-ds/bin/slapd/server/pwdhash, /opt/SUNWdsee/ds6/bin/pwdhash)
  2. 作り方(一度に複数作ることもできる。)
    pwdhash -D instance-dir -s scheme <password>
     
    ds# pwdhash -D /usr/iplanet/servers/slapd-ds -s SSHA passwd
    {SSHA}39Tg5eL0A13Inu14XY3JcNiwq0bVblY4C1HEDg== 
    または
    ./pwdhash -D /var/opt/SUNWdsee/dsins1/ -s SSHA password
    {SSHA}dO+17MmiI+b3Ykuk/473I6ZvnGKLRbx6SCKbZQ==
    

    複数の例

    ds# pwdhash -D /usr/iplanet/servers/slapd-ds -s SSHA kimimasa sato
    {SSHA}tTuq1NZPDrUkPcisLIkVXDTnVlrkdNQBc201cQ==
    {SSHA}CE96R0/URiyu07Ewyos8Nkwg0ofYYh1noDF4Og== 
    
  3. 確認の仕方
    pwdhash -D instance-dir -c comparepwd <password>
    ds# pwdhash -D /usr/iplanet/servers/slapd-ds -c '{SSHA}39Tg5eL0A13Inu14XY3JcNiwq0bVblY4C1HEDg==' passwd
    pwdhash: password ok.
    
  4. Identity Server(OpenSSOの昔の名前)に関して
    ldif のファイルのuserPassword の部分を書き換えてから、ldapmodify でdirectory にエントリーを追加して、
    SSOができることを確認。
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact