By: Master Kumar user 26 Oct 2018 at 11:58 a.m. CDT

14 Responses
Master Kumar gravatar
In the gluu server on the shell prompt i am trying to do ldap search using below command and its not returning anything. /opt/gluu-server-3.1.3/opt/opendj/bin/ldapsearch -h localhost -p 1636 -Z -X -D "cn=directory manager" -w 'xxxxxx' -b "ou=appliances,o=gluu" -s one "objectclass=*" I tried to check the status using the command /opt/gluu-server-3.1.3/opt/opendj/bin/status and below is the output i see >>>> Specify OpenDJ LDAP connection parameters Administrator user bind DN [cn=Directory Manager]: Password for user 'cn=Directory Manager': --- Server Status --- Server Run Status: Started Open Connections: 15 --- Server Details --- Host Name: mygluserv.com Administrative Users: cn=directory manager Installation Path: /opt/gluu-server-3.1.3/opt/opendj Version: Gluu-OpenDJ 3.0.0-1 Java Version: 1.8.0_162 Administration Connector: Port 4444 (LDAPS) --- Connection Handlers --- Address:Port : Protocol : State -------------:----------:--------- -- : LDIF : Disabled 0.0.0.0:1389 : LDAP : Disabled 0.0.0.0:1636 : LDAPS : Enabled 0.0.0.0:1689 : JMX : Enabled 0.0.0.0:8080 : HTTP : Disabled --- Data Sources --- Base DN: o=gluu Backend ID: userRoot Entries: 11682 Replication: Base DN: o=site Backend ID: site Entries: 2 Replication: So why the ldapsearch is not returning anything?

By Chris Blanton user 26 Oct 2018 at 12:02 p.m. CDT

Chris Blanton gravatar
Master, Login to the Gluu Server chroot with `/sbin/gluu-server-3.1.3 login` then run `/opt/opendj/bin/ldapsearch -h localhost -p 1636 -Z -X -D "cn=directory manager" -w 'xxxxxx' -b "ou=appliances,o=gluu" -s one "objectclass=*"`.

By Master Kumar user 26 Oct 2018 at 1:06 p.m. CDT

Master Kumar gravatar
Hi Chris, thank you for quick response. Infact i did try that also and still giving the same. FYI below is what i did ``` /sbin/gluu-serverd-3.1.3 login Last login: Tue Oct 9 03:28:33 2018 from ip6-localhost Welcome to the Gluu Server! [root@mygluserv ~]# /opt/gluu-server-3.1.3/opt/opendj/bin/ldapsearch -h localhost -p 1636 -Z -X -D "cn=directory manager" -w 'password' -b "ou=appliances,o=gluu" -s one "objectclass=*" -bash: /opt/gluu-server-3.1.3/opt/opendj/bin/ldapsearch: No such file or directory [root@mygluserv ~]# /opt/opendj/bin/ldapsearch -h localhost -p 1636 -Z -X -D "cn=directory manager" -w 'password' -b "ou=appliances,o=gluu" -s one "objectclass=*" ``` Do let me know how to get through this as i need to update the authentication :(

By Chris Blanton user 26 Oct 2018 at 1:29 p.m. CDT

Chris Blanton gravatar
What was the output of this command?: ``` /opt/opendj/bin/ldapsearch -h localhost -p 1636 -Z -X -D "cn=directory manager" -w 'password' -b "ou=appliances,o=gluu" -s one "objectclass=*" ```

By Chris Blanton user 26 Oct 2018 at 1:30 p.m. CDT

Chris Blanton gravatar
> Do let me know how to get through this as i need to update the authentication :( Do you have an LDAP explorer like Apache DS? This would probably make it easier for you to update the data.

By Master Kumar user 26 Oct 2018 at 1:51 p.m. CDT

Master Kumar gravatar
Output of the ldapsearch is nothing. Yes i have jxplorer client using which i am not able to connect to opendj giving error, though the port is open.

By Chris Blanton user 26 Oct 2018 at 1:53 p.m. CDT

Chris Blanton gravatar
> Output of the ldapsearch is nothing. Did you delete all of your `ou=appliances,o=gluu`? Try to run this and see if you get any output: ``` /opt/opendj/bin/ldapsearch -p 1636 -Z -X -D "cn=directory manager" -w 'password' -b "o=gluu" "objectclass=*" ``` > Yes i have jxplorer client using which i am not able to connect to opendj giving error, though the port is open. What error are you getting from JXplorer?

By Master Kumar user 29 Oct 2018 at 1:16 p.m. CDT

Master Kumar gravatar
Nothing has been deleted and when i ran the given ldapsearch its not returning anything. Now i am able to connect to OpenDj using the Jxplorer, but not sure why the ldap search command is not returning :(

By Chris Blanton user 29 Oct 2018 at 1:18 p.m. CDT

Chris Blanton gravatar
Are you seeing any entries in your JXplorer?

By Master Kumar user 30 Oct 2018 at 12:45 a.m. CDT

Master Kumar gravatar
Yes i am able to see the entries and also able do changes. But i am worried on why we are not getting anything when we run the above ldapsearch command.

By Chris Blanton user 30 Oct 2018 at 10:13 a.m. CDT

Chris Blanton gravatar
I'm not sure. If you're not getting any output at all from the command, that doesn't make sense. Are you sure you're accessing the right server? Can you test a negative and use the wrong password to see if you get a credential error? I need to see all of the outputs to make a decision here

By Master Kumar user 31 Oct 2018 at 11:02 a.m. CDT

Master Kumar gravatar
I did try with the negative test cases(with out password, with wrong password) also and still its returning empty without any error

By Chris Blanton user 31 Oct 2018 at 11:05 a.m. CDT

Chris Blanton gravatar
Are you sure you're on the right instance? Did you already install Gluu Server here? Send me a `ls -l` of your `/opt/` directory inside the Gluu Server chroot.

By Master Kumar user 04 Nov 2018 at 11:14 p.m. CST

Master Kumar gravatar
Yes i am on the right instance and gluu server is up and running. Here is the output of ls -l /opt/ ``` total 12 drwxrwxr-x. 6 root root 49 Oct 3 16:13 dist drwxr-xr-x. 7 root root 65 Aug 6 08:39 gluu drwxr-xr-x. 7 root root 4096 Dec 20 2017 jdk1.8.0_162 lrwxrwxrwx. 1 jetty jetty 49 Aug 6 08:39 jetty -> /opt/jetty-9.4/jetty-distribution-9.4.9.v20180320 drwxr-xr-x. 4 root root 58 Aug 6 08:39 jetty-9.4 lrwxrwxrwx. 1 root root 17 Aug 6 08:39 jre -> /opt/jdk1.8.0_162 lrwxrwxrwx. 1 root root 18 Aug 6 08:39 jython -> /opt/jython-2.7.2a drwxr-xr-x. 7 root root 4096 Aug 6 08:39 jython-2.7.2a lrwxrwxrwx. 1 node node 26 Aug 6 08:39 node -> /opt/node-v9.9.0-linux-x64 drwxr-xr-x. 7 node node 112 Aug 6 08:39 node-v9.9.0-linux-x64 drwxr-xr-x. 18 ldap ldap 4096 Aug 6 08:42 opendj ```

By Chris Blanton user 05 Nov 2018 at 10:30 a.m. CST

Chris Blanton gravatar
`/opt/opendj/bin/ldapsearch` just run this command. If you're not getting _anything_ at all, something is wrong with your Gluu Server installation.1 This is your expected response: ``` An error occurred while parsing the command-line arguments: The argument baseDN is required to have a value but none was provided in the argument list and no default value is available See "ldapsearch --help" to get more usage help ```