diff options
author | Gerald Carter <jerry@samba.org> | 2005-05-31 02:23:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:57:01 -0500 |
commit | 450e8d5749504f8392c0cfe8b79218f03b88076a (patch) | |
tree | cef9fa5ebb4909a57ad02af6416b94182c6b874d /source3/groupdb/mapping.c | |
parent | a3f4c365171097eaa615b390d74a90b9345a3973 (diff) | |
download | samba-450e8d5749504f8392c0cfe8b79218f03b88076a.tar.gz samba-450e8d5749504f8392c0cfe8b79218f03b88076a.tar.bz2 samba-450e8d5749504f8392c0cfe8b79218f03b88076a.zip |
r7130: remove 'winbind enable local accounts' code from the 3.0 tree
(This used to be commit 318c3db4cb1c85be40b2f812f781bcf5f1da5c19)
Diffstat (limited to 'source3/groupdb/mapping.c')
-rw-r--r-- | source3/groupdb/mapping.c | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c index 7c032ef93d..a30e8eed78 100644 --- a/source3/groupdb/mapping.c +++ b/source3/groupdb/mapping.c @@ -988,12 +988,7 @@ int smb_create_group(char *unix_group, gid_t *new_gid) close(fd); } - } else if ( winbind_create_group( unix_group, NULL ) ) { - - DEBUG(3,("smb_create_group: winbindd created the group (%s)\n", - unix_group)); - ret = 0; - } + } if (*new_gid == 0) { struct group *grp = getgrnam(unix_group); @@ -1024,12 +1019,6 @@ int smb_delete_group(char *unix_group) return ret; } - if ( winbind_delete_group( unix_group ) ) { - DEBUG(3,("smb_delete_group: winbindd deleted the group (%s)\n", - unix_group)); - return 0; - } - return -1; } @@ -1054,15 +1043,6 @@ int smb_set_primary_group(const char *unix_group, const char* unix_user) return ret; } - /* Try winbindd */ - - if ( winbind_set_user_primary_group( unix_user, unix_group ) ) { - DEBUG(3,("smb_delete_group: winbindd set the group (%s) as the primary group for user (%s)\n", - unix_group, unix_user)); - flush_pwnam_cache(); - return 0; - } - return -1; } @@ -1086,14 +1066,6 @@ int smb_add_user_group(char *unix_group, char *unix_user) return ret; } - /* Try winbindd */ - - if ( winbind_add_user_to_group( unix_user, unix_group ) ) { - DEBUG(3,("smb_delete_group: winbindd added user (%s) to the group (%s)\n", - unix_user, unix_group)); - return -1; - } - return -1; } @@ -1117,14 +1089,6 @@ int smb_delete_user_group(const char *unix_group, const char *unix_user) return ret; } - /* Try winbindd */ - - if ( winbind_remove_user_from_group( unix_user, unix_group ) ) { - DEBUG(3,("smb_delete_group: winbindd removed user (%s) from the group (%s)\n", - unix_user, unix_group)); - return 0; - } - return -1; } |