Bug 3113 - 'map to guest = Bad User' seems not to work anymore
Summary: 'map to guest = Bad User' seems not to work anymore
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: File Services (show other bugs)
Version: 3.0.20
Hardware: All Windows XP
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
Depends on:
Reported: 2005-09-22 02:32 UTC by Terry
Modified: 2006-02-07 08:12 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Terry 2005-09-22 02:32:33 UTC
i have the option 'map to guest = Bad User' set in global options
and also 'guest ok = Yes' in one of the shares.

before (i think it was samba 3.0.14?) it worked flawlesly,
when mounting such share i could give ambigious username
and password and get access.

now i get message 'there are currently no logon servers available to service the
logon request' and in samba log:

[2005/09/22 11:28:49, 2] auth/auth.c:check_ntlm_password(317)
  check_ntlm_password:  Authentication for user [qweqwe] -> [qweqwe] FAILED with
[2005/09/22 11:28:49, 2] smbd/server.c:exit_server(608)
  Closing connections

here is relevant section of my smb.conf:
        dos charset = 852
        unix charset = ISO8859-2
        display charset = ISO8859-2
        workgroup = PWDNT
        security = DOMAIN
        map to guest = Bad User
        password server = PWDNTPRIMARY
        username map = /etc/samba/smbusers
        client NTLMv2 auth = Yes
        client lanman auth = No
        client plaintext auth = No
        log level = 2
        log file = /var/log/samba/log.%m
        max log size = 50
        max open files = 1000
        socket options = TCP_NODELAY SO_RCVBUF=32768 SO_SNDBUF=32768
        load printers = No
        ldap ssl = no
        idmap uid = 45000-60000
        idmap gid = 45000-60000
        comment = Linux Samba server
        hosts allow = xxxxxxx
        case sensitive = No

        comment = samba mia
        path = /lvm/samba
        admin users = doli
        read only = No
        guest ok = Yes
Comment 1 Gerald (Jerry) Carter (dead mail address) 2006-02-07 06:03:34 UTC
This works fine against 3.0.21b.  The NO_LOGON_SERVERS error is what
is causing the guest mapping not to take place on your server.
It has to be NO_SUCH_USER:

  check_ntlm_password:  Authentication for user [Administrator] -> 
      [Administrator] FAILED with error NT_STATUS_NO_SUCH_USER
  No such user Administrator [COLOR] - using guest account

Pleas retest against 3.0.21b.
Comment 2 Gerald (Jerry) Carter (dead mail address) 2006-02-07 06:19:21 UTC
verified that the same setup does in fact work against 3.0.20b
Comment 3 Terry 2006-02-07 08:12:36 UTC
everythings working fine now. thank you! :)