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
786786ereport (LOG ,
787- (errmsg ("could not initialize LDAP: error %d" ,
787+ (errmsg ("could not initialize LDAP: errorcode %d" ,
788788errno )));
789789#else
790790ereport (LOG ,
791- (errmsg ("could not initialize LDAP: error %d" ,
791+ (errmsg ("could not initialize LDAP: errorcode %d" ,
792792 (int )LdapGetLastError ())));
793793#endif
794794return STATUS_ERROR ;
@@ -797,7 +797,7 @@ CheckLDAPAuth(Port *port)
797797if ((r = ldap_set_option (ldap ,LDAP_OPT_PROTOCOL_VERSION ,& ldapversion ))!= LDAP_SUCCESS )
798798 {
799799ereport (LOG ,
800- (errmsg ("could not set LDAP protocol version: error %d" ,r )));
800+ (errmsg ("could not set LDAP protocol version: errorcode %d" ,r )));
801801return STATUS_ERROR ;
802802 }
803803
@@ -843,7 +843,7 @@ CheckLDAPAuth(Port *port)
843843#endif
844844 {
845845ereport (LOG ,
846- (errmsg ("could not start LDAP TLS session: error %d" ,r )));
846+ (errmsg ("could not start LDAP TLS session: errorcode %d" ,r )));
847847return STATUS_ERROR ;
848848 }
849849 }
@@ -858,7 +858,7 @@ CheckLDAPAuth(Port *port)
858858if (r != LDAP_SUCCESS )
859859 {
860860ereport (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\": errorcode %d" ,
862862fulluser ,server ,r )));
863863return STATUS_ERROR ;
864864 }