summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-03-14 07:15:39 +0000
committerVolker Lendecke <vlendec@samba.org>2004-03-14 07:15:39 +0000
commit0f9186a1acc235d69887a3bbc1f5ffd320b6f99d (patch)
tree71a1bbc0b66452adf7e36023eab2dc298e5ef905
parent5a521453baefd43c4b16cf8bc1ff530feaf9a4b6 (diff)
downloadsamba-0f9186a1acc235d69887a3bbc1f5ffd320b6f99d.tar.gz
samba-0f9186a1acc235d69887a3bbc1f5ffd320b6f99d.tar.bz2
samba-0f9186a1acc235d69887a3bbc1f5ffd320b6f99d.zip
When trying to remove a user from a group, winbind should be informed
about the user and group... Volker (This used to be commit 9fa2c4045252f07cc0518457d8ef8b81d8402327)
-rw-r--r--source3/nsswitch/wb_client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/nsswitch/wb_client.c b/source3/nsswitch/wb_client.c
index 0c6644e9d0..90e4584dab 100644
--- a/source3/nsswitch/wb_client.c
+++ b/source3/nsswitch/wb_client.c
@@ -499,6 +499,9 @@ BOOL winbind_remove_user_from_group( const char *user, const char *group )
ZERO_STRUCT(response);
+ fstrcpy( request.data.acct_mgt.username, user );
+ fstrcpy( request.data.acct_mgt.groupname, group );
+
result = winbindd_request( WINBINDD_REMOVE_USER_FROM_GROUP, &request, &response);
return result == NSS_STATUS_SUCCESS;