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!
fritz_fx
2005-05-24, 09:54
i had the problem with 16/05/05 so i upped to 23/05/05 still got the same problem
just a thought tho,, how bout removing all of the shares from ur pc, rebooting then set up all the shares again !?
i'm not near the other box i'm havin probs with so i can't try it atm. but its worth havin a go at? i think
admiralj
2005-05-24, 09:56
wow this is really irritating. everyone in #xbmc and practically everyone else ive talked to seems to have no idea what i'm talking about. when trying to access my fileserver with the username/pass of "bob/r0bert", the fileserer logs say:
logon attempt by: microsoft_authentication_package_v1_0
logon account: bob
source workstation: xbox
error code: 0xc000006a
logon failure:
reason: unknown user name or bad password
user name: bob
domain: alpha
logon type: 3
logon process: ntlmssp
authentication package: ntlm
workstation name: xbox
caller user name: -
caller domain: -
caller logon id: -
caller process id: -
transited services: -
source network address: 192.168.1.105
source port: 0
ok now error code 0xc000006a is generated when a user logs into a windows box with an incorrect password. yet the credentials i have in my xboxmediacenter.xml file are:
<samba>
<workgroup>alpha</workgroup>
<winsserver>-</winsserver>
<debuglevel>10</debuglevel>
<defaultusername>bob</defaultusername>
<defaultpassword>r0bert</defaultpassword>
</samba>
the bookmarks all point to smb://192.168.1.100/, which is the ip address of the fileserver. assuming it is using the default login/pass to access the shares, it *should* work. the only thing i have done since the last time i installed xbmc (on 4/11) was install server 2003 sp1, which could explain a lot... but why would the 4/11 build work 100% and not the 5/23? i can only assume that either those who compiled this build (the 5/23 ekb rls) or someone on the dev side must've somehow changed or accidently screwed over the smb code. i'd really like to keep this build installed on this xbox since its the latest, but since there's no smb functionality, its basically worthless. i guess i'll have to revert back to the 5/19 build.
you guys had me worried. but i just did a fresh (full) dbr and my smb shares are working exactly as before (fine!) i'm running xp with sp2 (firewall enabled) and guest smb access. no problems. i hope you guys get your probs fix! i would hate to lose smb as i use my xbox for media (mostly streaming from pc: smb) more than anything.
if it helps, i don't access my share via ip. i use the host computers name.
admiralj, did you try to specify the username/password on the bookmark instead of using the default password /username.. it's kinda conflicting with the new routines for entering username/password.
babanoosh
2005-05-24, 16:58
admiralj:
just change the default.xbe to the 20th cvs for the time being. i downloaded the same ekb.
lostit:
dunno about guest access; i’m using smb over xp w/ user/pass.
perhaps the latest build no longer likes my tag but i did a clean install and tried the new and old xml (which are identical btw).
smb://user:pass@ip/share
none of the shares work with the 21st cvs but once i change the .xbe to the 20th, all is well again.
this is a problem; hopefully one of the admins can recreate the scenario.
admiralj
2005-05-24, 20:11
admiralj, did you try to specify the username/password on the bookmark instead of using the default password /username.. it's kinda conflicting with the new routines for entering username/password.
yeah i gave that a shot. no luck though. i created some test shares with the following bookmarks in the .xml file:
<bookmark>
<name>smb network share ip</name>
<path>smb://192.168.1.100/h/mp3/</path>
</bookmark>
<bookmark>
<name>network ip,l&p </name>
<path>smb://bob:r0bert@192.168.1.100/h/mp3/</path>
</bookmark>
<bookmark>
<name>network domain, ip,l&p </name>
<path>smb://alpha;bob:r0bert@192.168.1.100/h/mp3/</path>
</bookmark>
i tried those using
<defaultusername>-</defaultusername>
<defaultpassword>-</defaultpassword>
and
<defaultusername>bob</defaultusername>
<defaultpassword>r0bert</defaultpassword>
the results are the same as before. somehow the username validates, but the password never clears - even if the user account has a blank password. hopefully this is just an issue with these builds and does not carry over to future xbmc releases.
admiralj
2005-05-24, 20:33
yeah - there is definately something wrong in the .xbe. i did what babanoosh suggested and replaced the 5/23 .xbe with the 5/20 .xbe and *poof* the account now successfully accesses smb shares. very strange indeed...
logs indicate:
logon attempt by: microsoft_authentication_package_v1_0
logon account: bob
source workstation: xbox
error code: 0x0
successful network logon:
user name: bob
domain: alpha
logon id: (0x0,0xfb802)
logon type: 3
logon process: ntlmssp
authentication package: ntlm
workstation name: xbox
logon guid: -
caller user name: -
caller domain: -
caller logon id: -
caller process id: -
transited services: -
source network address: 192.168.1.105
source port: 0
dsmithuk
2005-05-24, 21:08
<aol> me too - since 21/5 rls</aol>
babanoosh
2005-05-24, 22:17
must be something with ekb build. i have noticed that his newer xbe has an eleven meg .xbe while the others are around 7 megs. it seems some of that additional size has to do with the new internet browser as i've lost its functionality. fyi, i'm using 5-22 .xbe now from the "expert" build.
Mulefire
2005-05-25, 05:14
i don't think it is ekb per se (i was using the ekb builds as well).
the links2xbmc code base is a seperate repository based on a subset of the xbmc cvs source. to compile it into xbmc currently you need to grab the links2xbmc code and copy it over the xbmc code then compile the whole thing as one.
it seems likely that the bug is something in the links2xbmc updates and not in the xbmc cvs. however that is pure speculation :)
i'm in the middle of messing around with a couple of different compiles so i'll see if i see anything obvious.
mule.
BritneysPAIRS
2005-05-25, 05:34
im using cvs from sourceforge(daily builds unless problems occur) and have moded about 50 xboxs since date mentioned with no issue on network smb from anyone. maybe there is problem but im not haveing this problem and put it on many xboxs.
Mulefire
2005-05-25, 06:47
heh,
yeah.. i was just away reading up some more on the links2xbmc project and it does seem that the prob is limited to just the ekb builds, and not an xbmc cvs bug at all.
i'm still in the middle of compiling a fresh copy with the linksbok code inside so don't really know exactly what the problem is. at least in my mind it's not really a bug since the links2xbmc code is still beta and a work in progress and this issue seams unrelated to their updates.
it's sad but ekb seems to have got a bad rap over this (in other forums) and he has been a steady source of new builds for people like me who never compiled their own before. but i can see the point that bugs in the builds are viewed as being xbmc cvs bugs (as i originally thought) and causing unnessary support issues.
well i guess the moral of the story is remember beta is beta and try different builds when in doubt :)
mule.
babanoosh
2005-05-25, 07:17
interesting mulefire. when you say "other forums" ; are you referring to xbox scene or else where? i'd like to read 'em.
~anyways~
i kinda figured it was an ekb thing seeing as how the mods weren't responding to this one and there wasn't widespread hysteria here,which you know would be the case of noone had smb working :)
likewise, i mentioned another problem in the bugs dicussion board that i'm also wondering is related to this ekb build now that i think about it....hmmm...
i hope that ekb doesn't get discouraged cuz i think he's the only regular posting builds in a.b.cd.i.xbox.
i have all the necessaries to start compiling; perhaps now is a good ah time as any to get started on my own builds :) cvs.5.24.05.xbmc.noosh.rar
:kickass:
BritneysPAIRS
2005-05-25, 10:30
***ekb build from news groups withlinks web browser****
is compiled wrong and not cvs code. this is your fault. recommend fix get proper build. *:nuts:
babanoosh
2005-05-25, 16:05
actually, i think the blame would lie with the compiler. even than, i think his intentions were sound so.....no biggie....
i'm going to compile my own from own now, so i can blame myself. :nuts: