By: Doug Huang user 16 Jan 2018 at 10:23 p.m. CST

1 Response
Doug Huang gravatar
Just installed Gluu Server 3.1.1 in EC2 instance, oxauth/login can access from outside AWS. I was able to create two test account and one test group. I ssh into the EC2 instance and login to container and perform following search: -bash-4.2# /opt/opendj/bin/ldapsearch -h 127.0.0.1 -p 1636 -s sub -T -Z -X -D 'cn=directory manager,o=gluu' -w 'myBindPassword' -b 'o=gluu' gluuGroupType=gluuManagerGroup Got response as following: dn: inum=@!AF69.D089.AC59.7862!0001!4F7A.3C41!0003!60B7,ou=groups,o=@!AF69.D089.AC59.7862!0001!4F7A.3C41,o=gluu objectClass: top objectClass: gluuGroup gluuGroupType: gluuManagerGroup inum: @!AF69.D089.AC59.7862!0001!4F7A.3C41!0003!60B7 gluuStatus: active displayName: Gluu Manager Group member: inum=@!AF69.D089.AC59.7862!0001!4F7A.3C41!0000!A8F2.DE1E.D7FB,ou=people,o=@!AF69.D089.AC59.7862!0001!4F7A.3C41,o=gluu However, if I run ldapsearch outside of AWS as following: $ ldapsearch -h theGluuServerIP -p 1636 -s sub -T -Z -X -D 'cn=directory manager,o=gluu' -w 'myBindPassword' -b 'o=gluu' gluuGroupType=gluuManagerGroup I got following response: ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1) I am new to Gluu Server, please advice how to resolve the issue.

By Mohib Zico staff 17 Jan 2018 at 12:20 a.m. CST

Mohib Zico gravatar
Hi Dough, It's not possible to access Gluu Server's LDAP data from outside of it's own VM. You need to create a reverse tunnel from your computer to do that. Here is an example: [Local User Management](https://gluu.org/docs/ce/3.1.1/user-management/local-user-management/)