The pdb_samba4 has a much better idea of the correct return values for
the guest account than the 'make it up from /etc/passwd' replacement
function.
Andrew Bartlett
uint32_t rid;
void *cache_data;
+#ifndef ENABLE_S3COMPAT
/* hard code the Guest RID of 501 */
if ( !sid_peek_check_rid( get_global_sam_sid(), sid, &rid ) )
DEBUG(6,("pdb_getsampwsid: Building guest account\n"));
return guest_user_info( sam_acct );
}
-
+#endif
/* check the cache first */
cache_data = memcache_lookup_talloc(