I'm using Apache Directory Studio (2.0.0.v20151221-M10) as an ldap browser, and 
a few years back Apache Directory Studio stopped being able to discover the 
Base DN of a particular (old) Sun Directory Server we have.

I found this question 
(http://superuser.com/questions/740877/how-do-i-query-the-available-base-dns-in-an-openldap-server)
 that helped discover the base DN on the command line.

This ldapsearch command shows the base DN:

    # ldapsearch -H ldap://servername-sds:389 -x -D 
"uid=admin,dc=company,dc=org,dc=au" -b "" -w password -s base \* +| grep 
namingContexts

But according to the search logs tab of Apache Directory Studio, it uses this 
command to discover the base DN:

    #!SEARCH REQUEST (119) OK
    #!CONNECTION ldap://servername-sds:389
    #!DATE 2016-08-19T02:38:59.301
    # LDAP URL     : 
ldap://servername-sds:389/?namingContexts,subschemaSubentry,supportedLDAPVersion,supportedSASLMechanisms,supportedExtension,supportedControl,supportedFeatures,vendorName,vendorVersion,+,objectClass??(objectClass=*)
    # command line : ldapsearch -H ldap://servername-sds:389 -x -D 
"uid=admin,dc=company,dc=org,dc=au" -W -b "" -s base "(objectClass=*)" 
"namingContexts" "subschemaSubentry" "supportedLDAPVersion" 
"supportedSASLMechanisms" "supportedExtension" "supportedControl" 
"supportedFeatures" "vendorName" "vendorVersion" "+" "objectClass"
    # baseObject   :
    # scope        : baseObject (0)
    # derefAliases : neverDerefAliases (0)
    # sizeLimit    : 0
    # timeLimit    : 0
    # typesOnly    : False
    # filter       : (objectClass=*)
    # attributes   : namingContexts subschemaSubentry supportedLDAPVersion 
supportedSASLMechanisms supportedExtension supportedControl supportedFeatures 
vendorName vendorVersion + objectClass

    #!SEARCH RESULT DONE (119) OK
    #!CONNECTION ldap://servername-sds:389
    #!DATE 2016-08-19T02:38:59.304
    # numEntries : 1

Which when run on the command line does return the namingContexts, but for some 
reason, Apache Directory Studio doesn't show the base DN, which is super weird.

Any idea how I can convince Apache Directory Studio to work?  It's the best 
open source ldap browser I've used so far, so it's sad it doesn't work for this 
particular server.

Curiously it works for other Sun DS servers, but I think I am binding with a 
user that has more privileges, although it is actually finding the baseDN but 
not displaying it in the GUI it seems.

Thanks,

Joel

PS. I posted this on super user 
(http://superuser.com/questions/1115240/apache-directory-studio-cant-discover-base-dn-for-old-sun-ds-server),
 but I think this mailing list is probably more likely to be seen by the right 
people here on the mailing list.  Hopefully this doesn't count as cross-posting.
--
This message contains privileged and confidential information only 
for use by the intended recipient.  If you are not the intended 
recipient of this message, you must not disseminate, copy or use 
it in any manner.  If you have received this message in error, 
please advise the sender by reply e-mail.  Please ensure all 
e-mail attachments are scanned for viruses prior to opening or 
using.

Reply via email to