s3:passdb s3compat Always ask the passdb module, even about the guest account
authorAndrew Bartlett <abartlet@samba.org>
Thu, 3 Jun 2010 11:03:52 +0000 (21:03 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 3 Jun 2010 12:34:21 +0000 (22:34 +1000)
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

source3/passdb/pdb_interface.c

index 4cc8b0815fb92f2b4fe2f5f1f6411887fdaa2c03..931a28ac64c2a95d56935b5d369e5a1874665222 100644 (file)
@@ -276,6 +276,7 @@ bool pdb_getsampwsid(struct samu *sam_acct, const struct dom_sid *sid)
        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 ) )
@@ -285,7 +286,7 @@ bool pdb_getsampwsid(struct samu *sam_acct, const struct dom_sid *sid)
                DEBUG(6,("pdb_getsampwsid: Building guest account\n"));
                return guest_user_info( sam_acct );
        }
-
+#endif
        /* check the cache first */
 
        cache_data = memcache_lookup_talloc(