Title: LDAP uid error
Last modified: November 13, 2016

---

# LDAP uid error

 *  Resolved [icarnr](https://wordpress.org/support/users/icarnr/)
 * (@icarnr)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/ldap-uid-error/)
 * After 3 day now I can connect from my WP to My Remote LDAP TLS Server but….
    
   The connection is UP but plugin test fails becouse when when trying to connect
   It presents query with uid=apache ……. very strange…. (&(objectClass=posixAccount)(
   uid=apache))
 * here is the log
 * Nov 13 11:42:48 hostingservice slapd[1354]: conn=8585 fd=32 ACCEPT from IP=140.164.14.215:
   40146 (IP=0.0.0.0:389)
    Nov 13 11:42:48 hostingservice slapd[1354]: conn=8585
   op=0 EXT oid=1.3.6.1.4.1.1466.20037 Nov 13 11:42:48 hostingservice slapd[1354]:
   conn=8585 op=0 STARTTLS Nov 13 11:42:48 hostingservice slapd[1354]: conn=8585
   op=0 RESULT oid= err=0 text= Nov 13 11:42:49 hostingservice slapd[1354]: conn
   =8585 fd=32 TLS established tls_ssf=128 ssf=128 Nov 13 11:42:49 hostingservice
   slapd[1354]: conn=8584 op=1 BIND dn=”” method=128 Nov 13 11:42:49 hostingservice
   slapd[1354]: conn=8584 op=1 RESULT tag=97 err=0 text= Nov 13 11:42:49 hostingservice
   slapd[1354]: conn=8581 fd=18 TLS established tls_ssf=128 ssf=128 Nov 13 11:42:
   49 hostingservice slapd[1354]: conn=8583 op=1 BIND dn=”” method=128 Nov 13 11:
   42:49 hostingservice slapd[1354]: conn=8583 op=1 RESULT tag=97 err=0 text= Nov
   13 11:42:49 hostingservice slapd[1354]: conn=8582 op=1 BIND dn=”” method=128 
   Nov 13 11:42:49 hostingservice slapd[1354]: conn=8582 op=1 RESULT tag=97 err=
   0 text= Nov 13 11:42:49 hostingservice slapd[1354]: conn=8585 op=1 BIND dn=””
   method=128 Nov 13 11:42:49 hostingservice slapd[1354]: conn=8585 op=1 RESULT 
   tag=97 err=0 text= Nov 13 11:42:49 hostingservice slapd[1354]: conn=8584 op=2
   SRCH base=”ou=ICAR,ou=account,o=cnr,c=it” scope=2 deref=0 filter=”(&(objectClass
   =posixAccount)(uid=apache))” Nov 13 11:42:49 hostingservice slapd[1354]: conn
   =8584 op=2 SRCH attr=uid uidNumber Nov 13 11:42:49 hostingservice slapd[1354]:
   conn=8581 op=1 BIND dn=”” method=128 Nov 13 11:42:49 hostingservice slapd[1354]:
   conn=8581 op=1 RESULT tag=97 err=0 text= Nov 13 11:42:49 hostingservice slapd[
   1354]: conn=8584 op=2 SEARCH RESULT tag=101 err=32 nentries=0 text= Nov 13 11:
   42:49 hostingservice slapd[1354]: conn=8583 op=2 SRCH base=”ou=ICAR,ou=account,
   o=cnr,c=it” scope=2 deref=0 filter=”(&(objectClass=posixAccount)(uid=apache))”
   Nov 13 11:42:49 hostingservice slapd[1354]: conn=8583 op=2 SRCH attr=uid uidNumber
   Nov 13 11:42:49 hostingservice slapd[1354]: conn=8583 op=2 SEARCH RESULT tag=
   101 err=32 nentries=0 text= Nov 13 11:42:49 hostingservice slapd[1354]: conn=
   8582 op=2 SRCH base=”ou=ICAR,ou=acc
 * Can you solve the problem?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [icarnr](https://wordpress.org/support/users/icarnr/)
 * (@icarnr)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/ldap-uid-error/#post-8435117)
 * I understand the problem
 * My connection with my ldap server is ok
 * my ldap search work very fine! So
 * ldapsearch -Z -D “cn=LoginAccess,ou=account,o=cnr,c=it” -w ********** -p 389 -
   h hostingservice.src.cnr.it -b “ou=ICAR,ou=account,o=cnr,c=it” -s sub “(&(objectClass
   =cnrPerson)(uid=vincenzo.errichiello))”
 * # ERRICHIELLO VINCENZO, dipendenti, ICAR, account, cnr, it
    dn: cn=ERRICHIELLO
   VINCENZO,ou=dipendenti,ou=ICAR,ou=account,o=cnr,c=it mail: [vincenzo.errichiello@cnr.it](https://wordpress.org/support/topic/ldap-uid-error/vincenzo.errichiello@cnr.it?output_format=md)
   uid: vincenzo.errichiello departmentNumber: 221410 objectClass: top objectClass:
   person objectClass: inetOrgPerson objectClass: qmailUser objectClass: radiusprofile
   objectClass: cnrPerson objectClass: eduPerson objectClass: Vacation cnrcognome:
   ERRICHIELLO cnrnome: VINCENZO cn: ERRICHIELLO VINCENZO cnrapp8: si matricola:
   17131 accountStatus: Active mailForwardingAddress: [vincenzo.errichiello@icar.cnr.it](https://wordpress.org/support/topic/ldap-uid-error/vincenzo.errichiello@icar.cnr.it?output_format=md)
 * # search result
    search: 3 result: 0 Success
 * # numResponses: 2
    # numEntries: 1 [root@intranet ~]#
 * the problem is -Z that instructs ldapsearch to use my TLS certificate.
 * But your plugin don’t use it ad is alway red…..
 * Immagine incorporata 2
 * Can you solve the problem?
 * Vincenzo
 *  Thread Starter [icarnr](https://wordpress.org/support/users/icarnr/)
 * (@icarnr)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/ldap-uid-error/#post-8435397)
 * StartTLS is the name of the standard LDAP operation for initiating TLS/SSL. TLS/
   SSL is initiated upon successful completion of this LDAP operation. No alternative
   port is necessary. It is sometimes referred to as the TLS upgrade operation, 
   as it upgrades a normal LDAP connection to one protected by TLS/SSL.
 * [http://www.openldap.org/faq/data/cache/185.html](http://www.openldap.org/faq/data/cache/185.html)
 *  Thread Starter [icarnr](https://wordpress.org/support/users/icarnr/)
 * (@icarnr)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/ldap-uid-error/#post-8435534)
 * The LDAP Start TLS operation is used in LDAP to initiate TLS negotiation. All
   OpenLDAP command line tools support a -Z and -ZZ flag to indicate whether a Start
   TLS operation is to be issued.
 * [http://www.openldap.org/doc/admin24/tls.html#Client](http://www.openldap.org/doc/admin24/tls.html#Client)
   Certificates
 *  Thread Starter [icarnr](https://wordpress.org/support/users/icarnr/)
 * (@icarnr)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/ldap-uid-error/#post-8452291)
 * After the latest release version, the plugin work very FINE with TLS so!!!
    Thz,
   Vincenzo

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘LDAP uid error’ is closed to new replies.

 * ![](https://ps.w.org/ldap-login-for-intranet-sites/assets/icon-128x128.gif?rev
   =2664776)
 * [Active Directory Integration / LDAP Integration](https://wordpress.org/plugins/ldap-login-for-intranet-sites/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ldap-login-for-intranet-sites/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ldap-login-for-intranet-sites/)
 * [Active Topics](https://wordpress.org/support/plugin/ldap-login-for-intranet-sites/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ldap-login-for-intranet-sites/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ldap-login-for-intranet-sites/reviews/)

 * 4 replies
 * 1 participant
 * Last reply from: [icarnr](https://wordpress.org/support/users/icarnr/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/ldap-uid-error/#post-8452291)
 * Status: resolved