Author: vlendec
Date: 2007-05-16 20:02:32 +0000 (Wed, 16 May 2007)
New Revision: 22953

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22953

Log:
Well, this apparently has never been tested. But *this* code never saw a
release yet .... ;-))

Modified:
   branches/SAMBA_3_0/source/auth/auth_server.c


Changeset:
Modified: branches/SAMBA_3_0/source/auth/auth_server.c
===================================================================
--- branches/SAMBA_3_0/source/auth/auth_server.c        2007-05-16 19:23:08 UTC 
(rev 22952)
+++ branches/SAMBA_3_0/source/auth/auth_server.c        2007-05-16 20:02:32 UTC 
(rev 22953)
@@ -254,7 +254,7 @@
 ****************************************************************************/
 
 static NTSTATUS check_smbserver_security(const struct auth_context 
*auth_context,
-                                        void *my_private_data, 
+                                        void *private_data, 
                                         TALLOC_CTX *mem_ctx,
                                         const auth_usersupplied_info 
*user_info, 
                                         auth_serversupplied_info **server_info)
@@ -266,6 +266,7 @@
        static BOOL bad_password_server = False;
        NTSTATUS nt_status = NT_STATUS_NOT_IMPLEMENTED;
        BOOL locally_made_cli = False;
+       struct server_security_state *state;
 
        /* 
         * Check that the requested domain is not our own machine name.
@@ -273,12 +274,10 @@
         * password file.
         */
 
-       if(is_myname(user_info->domain)) {
-               DEBUG(3,("check_smbserver_security: Requested domain was for 
this machine.\n"));
-               return nt_status;
-       }
+       state = talloc_get_type_abort(
+               private_data, struct server_security_state);
 
-       cli = (struct cli_state *)my_private_data;
+       cli = state->cli;
        
        if (cli) {
        } else {

Reply via email to