summaryrefslogtreecommitdiff
path: root/source4/winbind/wb_server.c
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2008-02-18 14:33:58 +0100
committerKai Blin <kai@samba.org>2008-02-21 11:21:59 +0100
commit895874d9663ccb95883579d145018ec8a8add9c8 (patch)
treeaa1cab86c67be63d53622796b3c6e8f2a9a60263 /source4/winbind/wb_server.c
parent2ca1aeb59be0267858c9cd46a04d37d982b79990 (diff)
downloadsamba-895874d9663ccb95883579d145018ec8a8add9c8.tar.gz
samba-895874d9663ccb95883579d145018ec8a8add9c8.tar.bz2
samba-895874d9663ccb95883579d145018ec8a8add9c8.zip
idmap: Handle uid->SID mapping
(This used to be commit 6ac6de8476ba036eb041e054bc37e4503dc2fde8)
Diffstat (limited to 'source4/winbind/wb_server.c')
-rw-r--r--source4/winbind/wb_server.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/winbind/wb_server.c b/source4/winbind/wb_server.c
index 9b303f3615..99191f3c6c 100644
--- a/source4/winbind/wb_server.c
+++ b/source4/winbind/wb_server.c
@@ -149,6 +149,12 @@ static void winbind_task_init(struct task_server *task)
return;
}
+ service->idmap_ctx = idmap_init(service, task->lp_ctx);
+ if (service->idmap_ctx == NULL) {
+ task_server_terminate(task, "Failed to load idmap database");
+ return;
+ }
+
/* setup the unprivileged samba3 socket */
listen_socket = talloc(service, struct wbsrv_listen_socket);
if (!listen_socket) goto nomem;