* sync more files from 3.0
[ira/wip.git] / source3 / smbd / service.c
index 70126b9e7fc9eed9f32fde4e39fb555906d49541..44d73b2ab27b8382c4994969dc60c8508f0ebd1b 100644 (file)
@@ -644,7 +644,9 @@ static connection_struct *make_connection_snum(int snum, user_struct *vuser,
        }
 
 #ifdef WITH_FAKE_KASERVER
-       afs_login(user);
+       if (lp_afs_share(SNUM(conn))) {
+               afs_login(conn);
+       }
 #endif
        
 #if CHECK_PATH_ON_TCONX