curl -X POST http://localhost:8001/apis/token/plugins \ --data "name=ldap-auth" \ --data "config.hide_credentials=false" \ --data "config.ldap_host=my.ldap.net" \ --data "config.ldap_port=389" \ --data "config.base_dn=OU=Office,OU=Users,OU=City,DC=company,DC=com" \ --data "config.attribute=sAMAccountName" \ --data "config.cache_ttl=60"import requests as rimport base64unpw = 'user.name:p@ssw0rd!'base64string = base64.encodestring(unpw).replace('\n', '')b_uri = 'https://kong.vip:8443'headers = { "Authorization": "LDAP " + base64string, "Host": '9.9.9.9', 'Accept': 'application/json'}
test_get = r.get(url=b_uri, headers=headers, verify=False)2016/05/23 10:04:49 [error] 2734#0: *63877 lua entry thread aborted: runtime error: /usr/local/share/lua/5.1/kong/plugins/ldap-auth/asn1.lua:320: attempt to call field 'mod' (a nil value)stack traceback:coroutine 0: /usr/local/share/lua/5.1/kong/plugins/ldap-auth/asn1.lua: in function 'encodeLength' /usr/local/share/lua/5.1/kong/plugins/ldap-auth/asn1.lua:225: in function 'encodeLDAPOp' /usr/local/share/lua/5.1/kong/plugins/ldap-auth/ldap.lua:56: in function 'bind_request' /usr/local/share/lua/5.1/kong/plugins/ldap-auth/access.lua:57: in function 'ldap_authenticate' /usr/local/share/lua/5.1/kong/plugins/ldap-auth/access.lua:75: in function 'cb' /usr/local/share/lua/5.1/kong/tools/database_cache.lua:128: in function 'get_or_set' /usr/local/share/lua/5.1/kong/plugins/ldap-auth/access.lua:72: in function 'authenticate' /usr/local/share/lua/5.1/kong/plugins/ldap-auth/access.lua:98: in function 'execute' /usr/local/share/lua/5.1/kong/plugins/ldap-auth/handler.lua:12: in function 'access' /usr/local/share/lua/5.1/kong.lua:188: in function 'access' access_by_lua(nginx.conf:103):2: in function <access_by_lua(nginx.conf:103):1>, client: 10.10.10.10, server: _, request: "GET / HTTP/1.1", host: "9.9.9.9"unpw = 'user.name:p@ssw0rd!’what is user here? a table?
In order to authenticate the user, client must set credentials in
Proxy-AuthorizationorAuthorizationheader in following formatcredentials := [ldap | LDAP] base64(username:password)
why this replacement?

--
You received this message because you are subscribed to the Google Groups "Kong" group.
To unsubscribe from this group and stop receiving emails from it, send an email to konglayer+...@googlegroups.com.
To post to this group, send email to kong...@googlegroups.com.
Visit this group at https://groups.google.com/group/konglayer.
To view this discussion on the web visit https://groups.google.com/d/msgid/konglayer/f17ec7ed-8380-4432-a8d5-71e8d4c603b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

On May 24, 2016, at 10:45 AM, shashi ranjan - mashape <sha...@mashape.com> wrote:
Attribute is field name which is used to identify user, like in following image
<Screenshot 2016-05-24 10.39.15.png>