X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=contrib%2Fweb_ldap%2Fweb_ldap.c;h=37376d1ec9f0c5be751dc014ae27985699cd9732;hb=ef3b182380156c1f85b00982afd6f799e1475047;hp=f08cd6b9e016987af7fabcc756f0003db9838e69;hpb=b063f5e83b5eb499f1b7293dd096ae71f153d0cf;p=openldap diff --git a/contrib/web_ldap/web_ldap.c b/contrib/web_ldap/web_ldap.c index f08cd6b9e0..37376d1ec9 100644 --- a/contrib/web_ldap/web_ldap.c +++ b/contrib/web_ldap/web_ldap.c @@ -5,23 +5,33 @@ * Jens Moller - Dec 11, 1998 */ -#include +#include "portable.h" + #include #include #include #include -#include -#include -#include + +#include +#include +#include +#include + #include #include #include #include "maint_form.h" /* for HTML Form manipulations */ /* default values */ +#ifndef LDAP_PORT #define LDAP_PORT 389 -#define SERVER "ldap.bigfoot.com" +#endif +#ifndef SERVER +#define SERVER "ldap.bigfoot.com" +#endif +#ifndef CONFIG #define CONFIG "web_ldap.cfg" +#endif #define MAX_ATTRIB 100 #define MAX_CHARS 256 @@ -558,7 +568,7 @@ void upcase_string(char *array, char *uparray) { int i; for (i=0; i < strlen(array); i++) { - uparray[i] = toupper(array[i]); + uparray[i] = toupper((unsigned char) array[i]); uparray[i + 1] = 0; } return;