[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
[samba.git] / source / services / svc_netlogon.c
index 11185fd116b5430a36cfa20fd63b891a4ab3f61b..c5a5385cdd0aff1982f6c6b1bc906b48d9a98d2f 100644 (file)
@@ -31,7 +31,7 @@ static WERROR netlogon_status( const char *service, SERVICE_STATUS *service_stat
         service_status->type              = 0x20;
         service_status->controls_accepted = SVCCTL_ACCEPT_NONE;
 
-       if ( share_defined("NETLOGON") ) {
+       if ( lp_servicenumber("NETLOGON") != -1 ) {
                service_status->state              = SVCCTL_RUNNING;
                service_status->win32_exit_code    = WERR_SERVICE_NEVER_STARTED;
        }
@@ -56,7 +56,7 @@ static WERROR netlogon_stop( const char *service, SERVICE_STATUS *service_status
 
 static WERROR netlogon_start( const char *service )
 {
-       if ( !share_defined("NETLOGON") )
+       if ( lp_servicenumber("NETLOGON") == -1 )
                return WERR_SERVICE_DISABLED;
 
        return WERR_ACCESS_DENIED;