summaryrefslogtreecommitdiffstats
path: root/source/groupdb
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-05-31 02:23:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:01 -0500
commit318c3db4cb1c85be40b2f812f781bcf5f1da5c19 (patch)
treef21ea0396024859b95fc35186257e751b2596c78 /source/groupdb
parentb01026674fddb4179a7f002c13f5e341eaaa0a1c (diff)
downloadsamba-318c3db4cb1c85be40b2f812f781bcf5f1da5c19.tar.gz
samba-318c3db4cb1c85be40b2f812f781bcf5f1da5c19.tar.xz
samba-318c3db4cb1c85be40b2f812f781bcf5f1da5c19.zip
r7130: remove 'winbind enable local accounts' code from the 3.0 tree
Diffstat (limited to 'source/groupdb')
-rw-r--r--source/groupdb/mapping.c38
1 files changed, 1 insertions, 37 deletions
diff --git a/source/groupdb/mapping.c b/source/groupdb/mapping.c
index 7c032ef93db..a30e8eed784 100644
--- a/source/groupdb/mapping.c
+++ b/source/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;
}