View Full Version : Smb asking for login/password
since i am using xbmc 2005-05-02 i am asked most of the time - but not always - for a login/password when accessing my pc from the xbmc via smb. sometimes it helps to restart the pc and/or xbox to make the login inquiry disappear. however i couldn't find a "rule" yet. it's annoying since i did not set any login/password, so i can't access my pc folders.
i haven't set any password protection in xbmc and this never happened with earlier releases of xbmc. on the pc i am running xp home and the guest account is enabled.
interestingly so far this never happened if i access the second pc in my network.
anybody has an idea about the cause or how to solve this issue?
thx & regards
zonk76
HarshReality
2005-05-21, 18:14
i had this happen several times last night but not been anything i could actually nail down to duplicate and say "here is whats doing it".
it is doing this for me too... i have no smb access to my pc anymore!
Mulefire
2005-05-23, 02:53
same here, seems the may 21st cvs build has some change to the samba code, reverting the binary back to the may 20th version fixes the issue.
for me 3 out of my 4 samba shares no longer work. the only common factor i can see is that the one that does work includes all lower case information and the 3 that do not have either a username or path variable with caps or spaces etc.
this is the error that actually apears in the log:
unix_err:'d' nt_err : 'c0000022' error : 'access denied'
mule.
Mulefire
2005-05-23, 03:23
meh... oh well.. i just tried removed all username/passwords from a share, giving full perms to everyone etc etc.. and still no go.. so i have no idea, other than a bug with the new revs.
mule.
none of my shares work! it always pops up keyboard and asks for username/password.
am i missing anything...
os = winxp pro
shares = everyone: full control
ntfs permissions = everyone: read & execute
links = smb://192.168.1.10/music
guest acct enabled within xp
firewall completely off (no other fw software)
TheNME123
2005-05-23, 14:49
i guess it's a new bug in smb code. it's not working for me since cvs may 21. linux samba server here with password protection.
jmarshall
2005-05-23, 15:10
nothing has changed in the smb code for the last 11 days or so as far as i can tell.
everything is still working fine here (smb with password to linux, smb without password to xp pro)
i get this error too with cvs 21-05-05. i have now reverted back to a previous build until this bug is sorted.
same for me for the 21-05-05 cvs, i reverted back to 16-05-05 cvs
admiralj
2005-05-24, 01:11
same here. i even did a clean install of the 5/21 xbmc build and copied my existing xboxmediacenter.xml file to the 5/21's root. i get a login/pass prompt everytime even though i have a default username/pass set in the .xml. none of the login/passwords i enter work, even though they are valid and fully operational when i connect to my fileserver via a pc.
when i enable logging this is what i get:
23-05-2005 15:14:09 error smbdirectory->getdirectory: unable to open directory : 'smb://xbox:xbox@192.168.1.100/' unix_err:'d' nt_err : 'c0000022' error : 'access denied'
fritz_fx
2005-05-24, 02:32
this is happening on a friends box as well, i am currently using 23rd may cvs and have no problems at all.
am running winxp pro, with a dlink 504g router (firewall off) with dhcp enabled and the path in my xml file is: '<path>smb://</path>' (yep, thats right, no ip) and it works like a charm
(even tho, '<path>smb://ip.of.my.pc</path>' works as well.
but:
i installed 16th/may cvs and 23rd/may (same copy that i'm using) on a friends box with winxp pro siemens speedstream 6250 wireless router, and it asks for a username/pass.
i can ftp to the box and the box is on the net.
xml file is set up right, altho i've tried 'smb://no.ip' 'smb://ip.of.pc' and 'smb://name.of.pc'
still no go.
the closest i have got so far is:
entering a user name, when prompted, no password. then pressing 'scan' the box started to scan the pc for media, i then pressed stop 'scan' and suddenly it worked and i could browse and stream from the pc. but unfortunatly, this only worked once.
the wierd thing is, if i connect this box to my network without changin anything, it works.
this is a long post and doesn't really give anybody an answer to the original question, but it might give someone a new train of thought on how to get around the prob.
i'm no expert, but i still like to press buttons to see what they do. :-)
Mulefire
2005-05-24, 04:51
wanted to supply some more info in case it is useful in debugging:
as per previous post, without any changes to xp sp2 box, and 2 freebsd boxes, xbmc cvs 2005-05-20 access all samba shares and xbmc cvs 2005-05-21 only accesses one.
the 2 freebsd boxes are using an idential samba configuration (with different share names) including the same user setup.
working in 2005-05-20 binary:
xp sp2
freebsd 5.3 samba 3.0.0
freebsd 5.3 samba 3.0.7
working in 2005-05-21 binary:
freebsd 5.3 samba 3.0.0
the samba logs from the *working* version are:
check_ntlm_password: *checking password for unmapped user [workgroup]\[xxxx]@[xbox] with the new password interface
[2005/05/23 21:32:12, 3] auth/auth.c:check_ntlm_password(219)
*check_ntlm_password: *mapped user is: [yyyy]\[xxxx]@[xbox]
[2005/05/23 21:32:12, 3] passdb/lookup_sid.c:fetch_sid_from_gid_cache(235)
*fetch sid from gid cache 0 -> xxxxxxxxxxxxxxxxxxxxxx
[2005/05/23 21:32:12, 3] auth/auth.c:check_ntlm_password(265)
*check_ntlm_password: sam authentication for user [xxxx] succeeded
and from the *not* working version:
*check_ntlm_password: *checking password for unmapped user [workgroup]\[xxxx]@[xbox] with the new password interface
[2005/05/23 09:12:53, 3] auth/auth.c:check_ntlm_password(222)
*check_ntlm_password: *mapped user is: [yyyy]\[xxxx]@[xbox]
[2005/05/23 09:12:54, 3] libsmb/ntlm_check.c:ntlm_password_check(340)
*ntlm_password_check: nt md4 password check failed for user xxxx
[2005/05/23 09:12:54, 2] auth/auth.c:check_ntlm_password(312)
*check_ntlm_password: *authentication for user [xxxx] -> [xxxx] failed with error nt_status_wrong_password
not sure *exactly* what to make of that other than the samba server is allowing access from the xbox ip etc, is seeing the username but for some reason the password being sent by the xbox is being garbled and cannot be found.
quick extract from the really basic samba configs (identical on both freebsd boxes):
server role: role_standalone
[global]
* * * *server string = samba server
* * * *log level = 3
* * * *log file = /var/log/log.%m
* * * *max log size = 50
* * * *dns proxy = no
* * * *remote announce = xxx.xxx.xxx.xxx/workgroup
* * * *hosts allow = xxx.xxx.xxx.
[media]
* * * *comment = %h media
* * * *path = /zzz/zzz/zzzzz
* * * *valid users = xxxx
* * * *read only = yes
hope this is of some use to a dev looking at the prob.
mule.
babanoosh
2005-05-24, 07:14
i concur :0
was going to start my own thread but glad i didn't. in the 2 years of using xbmc, i've never come across this problem so something has definitely changed.
was running 17 cvs just fine. just upped to 23rd (or 21st perhaps) and every smb share continually prompts me for username and password. even if i input the user/pass, still no go; just constantly loops between user and pass req.
fyi, i check my xboxmediacenter.xml with beyond compare and nothing has changed in between these two builds. i tried both anyways, thinking it was missing a new smb parameter or something and still no go! what gives?
babanoosh
2005-05-24, 08:00
reverted back to 05-20 default.xbe; fixed the problem for the interim.
i reverted to 5/19 (even though nfo says 5/20, changelog says 5/19) and fixed problem.
definitely a problem in 5/21 and above!