
未解決
MDSとOpenLDAPの連携について
お世話になります。
MDSのLDAP設定についてご教授ください。
環境:MDS 9148(NX-OS:9.4.1)
OpenLDAP
MDSのログインユーザをOpenLDAP(Port636)と連携しようとMDS側にLDAP設定をして
test aaa groupコマンドにて確認を行ったところ、
error authenticating with servers in group
が出力されてしまいました。
LDAPサーバのIPアドレスおよび、test aaa groupで使用したユーザ/パスワードには間違いはありません。
お手数ですが、設定方法(cnやouのして方法など)について誤りがないかご教授いただけないでしょうか。
■MDS show run(一部抜粋)
ldap-server host xxx.xxx.xxx.xxx rootDN "cn=mds_bind_only,ou=People,dc=test,dc=local" password 7 xxxxxxxxxxxxxxxx port 636
ldap-server host xxx.xxx.xxx.xxx enable-ssl
ldap search-map MDSmap
userprofile attribute-name "description" search-filter "cn=$userid" base-DN "cn=mds-admin,ou=Group,dc=test,dc=local"
user-certdn-match attribute-name "description" search-filter "cn=$userid" base-DN "cn=mds-admin,ou=Group,dc=test,dc=local"
aaa group server ldap MDSLogin1
server xxx.xxx.xxx.xxx
ldap-search-map MDSmap
■test aaa groupコマンドとdegugログ(一部抜粋)
# test aaa group MDSLogin1 testuser01 xxxxxxx
error authenticating with servers in group
ldap: ldap_server_config: Got for Protocol server index:1 addr:xxx.xxx.xxx.xxx
ldap: ldap_server_config: got back the return value of Protocol server xxx.xxx.xxx.xxx operation: SUCCESS, desc: SUCCESS
ldap: Retrieving hash for key xxx.xxx.xxx.xxx default 636 1
ldap: Using secure LDAP, URI : ldaps://xxx.xxx.xxx.xxx:636
ldap: ldap_client_auth_init: (user testuser01) - ldap_init success for host xxx.xxx.xxx.xxx port 636
ldap: ldap_do_initial_bind: rootDN : cn=mds_bind_only,ou=People,dc=test,dc=local
ldap: ldap_do_initial_bind: baseDN : cn=mds-admin,ou=Group,dc=test,dc=local
ldap: ldap_do_initial_bind: userDN :
ldap: ldap_do_initial_bind: (user testuser01) - ldap_bind for root failed - error[-1] Can't contact LDAP server
ldap: ldap_client_auth_init: (user testuser01) -Initial auth failed isssl: 1
■LDAP設定
$ ldapsearch -x -LLL "cn=mds-admin"
dn: cn=mds-admin,ou=Group,dc=test,dc=local
objectClass: posixGroup
cn: mds-admin
gidNumber: 1000
memberUid: testuser01
description: network-admin
$ ldapsearch -x -LLL "uid=mds_bind_only"
dn: uid=mds_bind_only,ou=People,dc=test,dc=local
objectClass: top
objectClass: posixAccount
objectClass: pilotPerson
cn: mds_bind_only
sn: mds_bind_only
uid: mds_bind_only
uidNumber: 1111
gidNumber: 1111
homeDirectory: /home/mds_bind_only
loginShell: /bin/bash
■LDAPユーザ設定
$ ldapsearch -x -LLL "uid=testuser01"
dn: uid=testuser01,ou=People,dc=test,dc=local
objectClass: top
objectClass: posixAccount
objectClass: pilotPerson
cn: TARO YAMADA
sn: YAMADA
uid: testuser01
uidNumber: 2789
gidNumber: 1042
mail:
homeDirectory: /home/testuser01
loginShell: /bin/bash
MDS LDAP設定参考:https://www.cisco.com/c/ja_jp/td/docs/dcn/mds9000/sw/9x/configuration/security/cisco-mds-9000-nx-os-security-configuration-guide-9x/configuring_security_features_on_external_aaa_server.html#con_2130468
また、念のため確認です。
今回、LDAPサーバ側はOpenLDAPを使用しているのですが、OpenLDAPとの連携の場合、
MDS側:ldap search-mapのattribute-nameはdescriptionを指定
LDAP側:descriptionにnetwork-adminを指定
で合っておりますでしょうか。
それ以外に必要な設定がありましたら併せてご教授いただけないでしょうか。
返信(0)
解決策(0)
