s3-auth Remove seperate guest boolean
[amitay/samba.git] / source3 / rpc_server / rpc_handles.c
index f3a97b37a22f922e3e3d97c22af8ac5b67f2b23b..3500a228d59d099ab8c52cfaa15c345df1c338ca 100644 (file)
@@ -25,6 +25,7 @@
 #include "auth.h"
 #include "ntdomain.h"
 #include "rpc_server/rpc_ncacn_np.h"
+#include "../libcli/security/security.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV
@@ -346,7 +347,7 @@ bool pipe_access_check(struct pipes_struct *p)
                        return True;
                }
 
-               if (p->session_info->unix_info->guest) {
+               if (security_session_user_level(p->session_info, NULL) < SECURITY_USER) {
                        return False;
                }
        }