diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-02-18 15:31:25 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2004-02-18 15:31:25 +0000 |
commit | 64cdbddbc1e0f63302aee4f02213d7a771feb315 (patch) | |
tree | 49074ca93394af819b6e9e33fa774f75faee0741 /source4/smb_server/password.c | |
parent | 932026724ff7e8050cfa0412c45168c25ee47e1a (diff) | |
download | samba-64cdbddbc1e0f63302aee4f02213d7a771feb315.tar.gz samba-64cdbddbc1e0f63302aee4f02213d7a771feb315.tar.bz2 samba-64cdbddbc1e0f63302aee4f02213d7a771feb315.zip |
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)
Diffstat (limited to 'source4/smb_server/password.c')
-rw-r--r-- | source4/smb_server/password.c | 19 |
1 files changed, 1 insertions, 18 deletions
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; |