|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.334 2006/07/27 13:20:24 momjian Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.335 2006/09/15 21:34:23 tgl Exp $ |
12 | 12 | *
|
13 | 13 | *-------------------------------------------------------------------------
|
14 | 14 | */
|
@@ -2411,7 +2411,7 @@ ldapServiceLookup(const char *purl, PQconninfoOption *options,
|
2411 | 2411 | *at each component.
|
2412 | 2412 | */
|
2413 | 2413 |
|
2414 |
| -if (strncasecmp(url,LDAP_URL,strlen(LDAP_URL))!=0) |
| 2414 | +if (pg_strncasecmp(url,LDAP_URL,strlen(LDAP_URL))!=0) |
2415 | 2415 | {
|
2416 | 2416 | printfPQExpBuffer(errorMessage,
|
2417 | 2417 | libpq_gettext("bad LDAP URL \"%s\": scheme must be ldap://\n"),purl);
|
@@ -2500,11 +2500,11 @@ ldapServiceLookup(const char *purl, PQconninfoOption *options,
|
2500 | 2500 | }
|
2501 | 2501 |
|
2502 | 2502 | /* set scope */
|
2503 |
| -if (strcasecmp(scopestr,"base")==0) |
| 2503 | +if (pg_strcasecmp(scopestr,"base")==0) |
2504 | 2504 | scope=LDAP_SCOPE_BASE;
|
2505 |
| -elseif (strcasecmp(scopestr,"one")==0) |
| 2505 | +elseif (pg_strcasecmp(scopestr,"one")==0) |
2506 | 2506 | scope=LDAP_SCOPE_ONELEVEL;
|
2507 |
| -elseif (strcasecmp(scopestr,"sub")==0) |
| 2507 | +elseif (pg_strcasecmp(scopestr,"sub")==0) |
2508 | 2508 | scope=LDAP_SCOPE_SUBTREE;
|
2509 | 2509 | else
|
2510 | 2510 | {
|
|