Make getpwnam_alloc() static to lib/username.c, and ensure all username lookups go
[abartlet/samba.git/.git] / source3 / web / cgi.c
index 1a472a77c7060aa0af90b970bd7d71e2c5d6de6f..e3356a2f7ed8a475efa08bf6ebbcf4c0c53070c1 100644 (file)
@@ -314,7 +314,7 @@ static void cgi_web_auth(void)
                exit(0);
        }
 
-       pwd = getpwnam_alloc(talloc_tos(), user);
+       pwd = Get_Pwnam_alloc(talloc_tos(), user);
        if (!pwd) {
                printf("%sCannot find user %s<br>%s\n", head, user, tail);
                exit(0);
@@ -369,7 +369,7 @@ static bool cgi_handle_authorization(char *line)
         * Try and get the user from the UNIX password file.
         */
 
-       pass = getpwnam_alloc(talloc_tos(), user);
+       pass = Get_Pwnam_alloc(talloc_tos(), user);
 
        rhost = client_name(1);
        if (strequal(rhost,"UNKNOWN"))