s4:s3compat call the simpler s3compat_winbind_accept() routine
authorAndrew Bartlett <abartlet@samba.org>
Thu, 13 May 2010 07:09:05 +0000 (17:09 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 3 Jun 2010 01:14:06 +0000 (11:14 +1000)
This is a cleaner way to enter into s3compat, and moves as much of the
glue out of source4/winbind as possible.

Andrew Bartlett

source4/winbind/wb_server.c

index aebd8ba8dbab7a85e67366e55f0f8b4c087d0bdd..5407323c8191e95cbb622ba05a5f364d78c8612a 100644 (file)
@@ -116,9 +116,8 @@ static void wbsrv_accept(struct stream_connection *conn)
        /* this is a hack for now to enable the s3 winbindd
           in s4 */
        if (lp_parm_bool(conn->lp_ctx, NULL, "s3compat", "winbindd", false)) {
-               void s3compat_winbindd_accepted_new_connection(int accepted_sock, bool privileged);
-               s3compat_winbindd_accepted_new_connection(socket_get_fd(conn->socket),
-                                                         wbsrv_socket->privileged);
+               void s3compat_winbind_accept(struct stream_connection *conn);
+               s3compat_winbind_accept(conn);
                return;
        }
 #endif