From 64cdbddbc1e0f63302aee4f02213d7a771feb315 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 18 Feb 2004 15:31:25 +0000 Subject: don't inlcude rpc/rpc.h and rpcsvc/*.h anymore and remove NET_GROUP stuff, this needs to be implemented in a better way if we ever readd this metze (This used to be commit da5f22976fb40ec96160439c7a926a15805fc7f0) --- source4/smb_server/password.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'source4/smb_server') diff --git a/source4/smb_server/password.c b/source4/smb_server/password.c index 53530abf7a..2811a14c21 100644 --- a/source4/smb_server/password.c +++ b/source4/smb_server/password.c @@ -309,24 +309,7 @@ BOOL user_ok(const char *user,int snum, gid_t *groups, size_t n_groups) validate a group username entry. Return the username or NULL ****************************************************************************/ static const char *validate_group(struct server_context *smb, const char *group, DATA_BLOB password,int snum) -{ -#ifdef HAVE_NETGROUP - { - char *host, *user, *domain; - setnetgrent(group); - while (getnetgrent(&host, &user, &domain)) { - if (user) { - if (user_ok(user, snum, NULL, 0) && - password_ok(smb, user,password)) { - endnetgrent(); - return(user); - } - } - } - endnetgrent(); - } -#endif - +{ #ifdef HAVE_GETGRENT { struct group *gptr; -- cgit