88 *
99 *
1010 * IDENTIFICATION
11- * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.142 2006/09/15 21:28:08 tgl Exp $
11+ * $PostgreSQL: pgsql/src/backend/libpq/auth.c,v 1.143 2006/10/03 21:21:36 momjian Exp $
1212 *
1313 *-------------------------------------------------------------------------
1414 */
@@ -784,11 +784,11 @@ CheckLDAPAuth(Port *port)
784784 {
785785#ifndef WIN32
786786 ereport (LOG ,
787- (errmsg ("could not initialize LDAP: error %d" ,
787+ (errmsg ("could not initialize LDAP: error code %d" ,
788788 errno )));
789789#else
790790 ereport (LOG ,
791- (errmsg ("could not initialize LDAP: error %d" ,
791+ (errmsg ("could not initialize LDAP: error code %d" ,
792792 (int ) LdapGetLastError ())));
793793#endif
794794 return STATUS_ERROR ;
@@ -797,7 +797,7 @@ CheckLDAPAuth(Port *port)
797797 if ((r = ldap_set_option (ldap , LDAP_OPT_PROTOCOL_VERSION , & ldapversion )) != LDAP_SUCCESS )
798798 {
799799 ereport (LOG ,
800- (errmsg ("could not set LDAP protocol version: error %d" , r )));
800+ (errmsg ("could not set LDAP protocol version: error code %d" , r )));
801801 return STATUS_ERROR ;
802802 }
803803
@@ -843,7 +843,7 @@ CheckLDAPAuth(Port *port)
843843#endif
844844 {
845845 ereport (LOG ,
846- (errmsg ("could not start LDAP TLS session: error %d" , r )));
846+ (errmsg ("could not start LDAP TLS session: error code %d" , r )));
847847 return STATUS_ERROR ;
848848 }
849849 }
@@ -858,7 +858,7 @@ CheckLDAPAuth(Port *port)
858858 if (r != LDAP_SUCCESS )
859859 {
860860 ereport (LOG ,
861- (errmsg ("LDAP login failed for user \"%s\" on server \"%s\": error %d" ,
861+ (errmsg ("LDAP login failed for user \"%s\" on server \"%s\": error code %d" ,
862862 fulluser , server , r )));
863863 return STATUS_ERROR ;
864864 }
0 commit comments