<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic OPENLDAP as AAA in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/openldap-as-aaa/m-p/1759358#M265039</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to configure OpenLDAP server as a AAA authentication group. Below is the configuration. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aaa group server ldap aaaldap&lt;/P&gt;&lt;P&gt; server aaaldap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ldap server aaaldap&lt;/P&gt;&lt;P&gt; ipv4 10.10.1.5&lt;/P&gt;&lt;P&gt; bind authenticate root-dn cn=admin,dc=test,dc=com password 7 082059490118121608&lt;/P&gt;&lt;P&gt; base-dn dc=test,dc=com&lt;/P&gt;&lt;P&gt; search-filter user-object-type People&lt;/P&gt;&lt;P&gt; search-filter user-object-type person&lt;/P&gt;&lt;P&gt; authentication bind-first&lt;/P&gt;&lt;P&gt; authentication compare&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I test this configuration with "test" command I get error as (No such object)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have enabled the debug and tried to figure out the error but it seems to be the error in search filter of user-object-type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation states that we have to refer ObjectClass name in search user-object-type but I think its for Microsoft AD and I'm trying to authenticate it with OpenLDAP server. Is it the same with OpenLdap as well or what should be the attribute instead of ObjectClass?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug is as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test-HO_1#test aaa group aaaldap cisco cisco new-code&lt;/P&gt;&lt;P&gt;User rejected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test-HO_1#&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: LDAP: Queuing AAA request 0 for processing&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Received queue event, new AAA request&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: LDAP authentication request&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Attempting first&amp;nbsp; next available LDAP server&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Got next LDAP server :aaaldap&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: First Task: Send compare req&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Authentication policy: bind-first&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Compare password first)&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Check the default map for aaa type=username&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Check the default map for aaa type=password&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: ldap_compare: ld=731840120, user_dn=cn=cisco,dc=test,dc=com, passwd_attr_name=userPasswordldap_req_encode&lt;/P&gt;&lt;P&gt;Doing socket write&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP:&amp;nbsp; LDAP compare request sent successfully (reqid=47)&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Sent the LDAP request to server&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Received socket event&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Checking the conn status&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Socket read event socket=1&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Found socket ctx&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Receive event: read=1, errno=9 (Bad file number)&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Passing the client ctx=2B9EFE78ldap_result&lt;/P&gt;&lt;P&gt;wait4msg (timeout 0 sec, 1 usec)&lt;/P&gt;&lt;P&gt;ldap_select_fd_wait (select)&lt;/P&gt;&lt;P&gt;ldap_read_activity lc 0x2BD43BC4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing socket read&lt;/P&gt;&lt;P&gt;LDAP-TCP:Bytes read = 31&lt;/P&gt;&lt;P&gt;ldap_match_request succeeded for msgid 8 h 0&lt;/P&gt;&lt;P&gt;changing lr 0x312A300C to COMPLETE as no continuations&lt;/P&gt;&lt;P&gt;removing request 0x312A300C from list as lm 0x313D30C4 all 0&lt;/P&gt;&lt;P&gt;ldap_msgfree&lt;/P&gt;&lt;P&gt;ldap_msgfree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: LDAP Messages to be processed: 1&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: LDAP Message type: 111&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Got ldap transaction context from reqid 47ldap_parse_result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aug&amp;nbsp; 7 17:04:13.543: LDAP: resultCode:&amp;nbsp;&amp;nbsp;&amp;nbsp; 32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (No such object)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.543: LDAP: Received Compare Responseldap_parse_result&lt;/P&gt;&lt;P&gt;ldap_err2string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.543: LDAP: Ldap Result Msg: FAILED:No such object, Result code =32&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.543: LDAP: LDAP Compare operation result : failedldap_msgfree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.543: LDAP: Closing transaction and reporting error to AAA&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.543: LDAP: Transaction context removed from list [ldap reqid=47]&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.543: LDAP: Notifying AAA: REQUEST FAILED&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.543: LDAP: Received socket event&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2019 01:17:00 GMT</pubDate>
    <dc:creator>bheda.laxman</dc:creator>
    <dc:date>2019-03-11T01:17:00Z</dc:date>
    <item>
      <title>OPENLDAP as AAA</title>
      <link>https://community.cisco.com/t5/network-access-control/openldap-as-aaa/m-p/1759358#M265039</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to configure OpenLDAP server as a AAA authentication group. Below is the configuration. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aaa group server ldap aaaldap&lt;/P&gt;&lt;P&gt; server aaaldap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ldap server aaaldap&lt;/P&gt;&lt;P&gt; ipv4 10.10.1.5&lt;/P&gt;&lt;P&gt; bind authenticate root-dn cn=admin,dc=test,dc=com password 7 082059490118121608&lt;/P&gt;&lt;P&gt; base-dn dc=test,dc=com&lt;/P&gt;&lt;P&gt; search-filter user-object-type People&lt;/P&gt;&lt;P&gt; search-filter user-object-type person&lt;/P&gt;&lt;P&gt; authentication bind-first&lt;/P&gt;&lt;P&gt; authentication compare&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I test this configuration with "test" command I get error as (No such object)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have enabled the debug and tried to figure out the error but it seems to be the error in search filter of user-object-type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The documentation states that we have to refer ObjectClass name in search user-object-type but I think its for Microsoft AD and I'm trying to authenticate it with OpenLDAP server. Is it the same with OpenLdap as well or what should be the attribute instead of ObjectClass?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug is as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test-HO_1#test aaa group aaaldap cisco cisco new-code&lt;/P&gt;&lt;P&gt;User rejected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test-HO_1#&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: LDAP: Queuing AAA request 0 for processing&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Received queue event, new AAA request&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: LDAP authentication request&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Attempting first&amp;nbsp; next available LDAP server&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Got next LDAP server :aaaldap&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: First Task: Send compare req&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Authentication policy: bind-first&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Compare password first)&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Check the default map for aaa type=username&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Check the default map for aaa type=password&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: ldap_compare: ld=731840120, user_dn=cn=cisco,dc=test,dc=com, passwd_attr_name=userPasswordldap_req_encode&lt;/P&gt;&lt;P&gt;Doing socket write&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP:&amp;nbsp; LDAP compare request sent successfully (reqid=47)&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Sent the LDAP request to server&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Received socket event&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Checking the conn status&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Socket read event socket=1&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Found socket ctx&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Receive event: read=1, errno=9 (Bad file number)&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Passing the client ctx=2B9EFE78ldap_result&lt;/P&gt;&lt;P&gt;wait4msg (timeout 0 sec, 1 usec)&lt;/P&gt;&lt;P&gt;ldap_select_fd_wait (select)&lt;/P&gt;&lt;P&gt;ldap_read_activity lc 0x2BD43BC4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing socket read&lt;/P&gt;&lt;P&gt;LDAP-TCP:Bytes read = 31&lt;/P&gt;&lt;P&gt;ldap_match_request succeeded for msgid 8 h 0&lt;/P&gt;&lt;P&gt;changing lr 0x312A300C to COMPLETE as no continuations&lt;/P&gt;&lt;P&gt;removing request 0x312A300C from list as lm 0x313D30C4 all 0&lt;/P&gt;&lt;P&gt;ldap_msgfree&lt;/P&gt;&lt;P&gt;ldap_msgfree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: LDAP Messages to be processed: 1&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: LDAP Message type: 111&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.539: LDAP: Got ldap transaction context from reqid 47ldap_parse_result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aug&amp;nbsp; 7 17:04:13.543: LDAP: resultCode:&amp;nbsp;&amp;nbsp;&amp;nbsp; 32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (No such object)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.543: LDAP: Received Compare Responseldap_parse_result&lt;/P&gt;&lt;P&gt;ldap_err2string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.543: LDAP: Ldap Result Msg: FAILED:No such object, Result code =32&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.543: LDAP: LDAP Compare operation result : failedldap_msgfree&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.543: LDAP: Closing transaction and reporting error to AAA&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.543: LDAP: Transaction context removed from list [ldap reqid=47]&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.543: LDAP: Notifying AAA: REQUEST FAILED&lt;/P&gt;&lt;P&gt;Aug&amp;nbsp; 7 17:04:13.543: LDAP: Received socket event&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 01:17:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/openldap-as-aaa/m-p/1759358#M265039</guid>
      <dc:creator>bheda.laxman</dc:creator>
      <dc:date>2019-03-11T01:17:00Z</dc:date>
    </item>
  </channel>
</rss>

