Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
upgraded samba, share authentication broken now [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
plut0
Apprentice
Apprentice


Joined: 21 Dec 2004
Posts: 272

PostPosted: Fri Nov 23, 2007 4:09 am    Post subject: upgraded samba, share authentication broken now [SOLVED] Reply with quote

I just upgraded from samba-3.0.24-r2 to 3.0.26a-r2. I have a share that uses windows authentication from our domain. This worked on the old version, now it won't authenticate on the new version.

emerge samba -pv:
Code:
[ebuild   R   ] net-fs/samba-3.0.26a-r2  USE="acl ads -async automount caps cups doc -examples -fam -ipv6 ldap pam python quotas readline (-selinux) swat syslog winbind" LINGUAS="-ja -pl" 0 kB


smb.conf:
Code:
[global]
        netbios name = HOSTNAME
        socket options = TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        winbind separator = +
        winbind use default domain = yes
        winbind enum users = no
        winbind enum groups = no
        workgroup = DOMAIN
        os level = 0
        password server = *
        preferred master = no
        local master = no
        domain master = no
        max log size = 50
        log file = /var/log/samba/log.%m
        encrypt passwords = yes
        dns proxy = no
        realm = DOMAIN.COM
        security = ADS
        wins server = 172.16.x.x
        wins proxy = no
        use sendfile = no

[software$]
        comment = Software
        guest ok = no
        public = no
        browseable = yes
        writeable = yes
        valid users = @"DOMAIN+domain admins"
        path = /home/Software
        force user = root
        force group = users
        create mask = 0664
        directory mask = 0775


I downgraded to 3.0.24-r3 and it worked again so something is wrong with the new version or I'm missing something. Any idea what is wrong?


Last edited by plut0 on Mon Nov 26, 2007 7:27 pm; edited 2 times in total
Back to top
View user's profile Send private message
ScOut3R
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2005
Posts: 116
Location: Australia

PostPosted: Fri Nov 23, 2007 9:05 am    Post subject: Reply with quote

I've also upgraded Samba on one of my servers and all the XP clients couldn't connect to the simple shares. So this problem occurs even if you don't use Samba as a PDC. I've head a serious headache when the sysadmin called me that the accounting and banking stopped at the company because of the upgrade.
Back to top
View user's profile Send private message
plut0
Apprentice
Apprentice


Joined: 21 Dec 2004
Posts: 272

PostPosted: Fri Nov 23, 2007 4:13 pm    Post subject: Reply with quote

I adjusted the topic accordingly. This puts us in a really bad situation because of the security advisory, GLSA 200711-29 Samba: Execution of arbitrary code.
Back to top
View user's profile Send private message
ScOut3R
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2005
Posts: 116
Location: Australia

PostPosted: Fri Nov 23, 2007 8:38 pm    Post subject: Reply with quote

Check out this topic.
Back to top
View user's profile Send private message
plut0
Apprentice
Apprentice


Joined: 21 Dec 2004
Posts: 272

PostPosted: Mon Nov 26, 2007 6:29 pm    Post subject: Reply with quote

Thanks for the link. I can confirm that using the IP address does work.

Is there a fix for the hostname? Perhaps a configuration option that is needed now?
Back to top
View user's profile Send private message
ScOut3R
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2005
Posts: 116
Location: Australia

PostPosted: Mon Nov 26, 2007 6:31 pm    Post subject: Reply with quote

Haven't tried it myself yet, but check this out:

Code:

Changes to MS-DFS Root Share Behavior
=====================================

Please be aware that the initial value for the "msdfs root" share
parameter was changed in the 3.0.25 release series and that this
option is now disabled by default. Windows clients frequently require
a reboot in order to clear any cached information about MS-DFS
root shares on a server and you may experience failures accessing
file services on Samba 3.0.25 servers until the client reboot
is performed. Alternately, you may explicitly re-enable the
parameter in smb.conf. Please refer to the smb.conf(5) man page
for more details.
Back to top
View user's profile Send private message
plut0
Apprentice
Apprentice


Joined: 21 Dec 2004
Posts: 272

PostPosted: Mon Nov 26, 2007 7:27 pm    Post subject: Reply with quote

Thanks, that fixed it!

Code:
[global]
msdfs root = yes
Back to top
View user's profile Send private message
ScOut3R
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2005
Posts: 116
Location: Australia

PostPosted: Mon Nov 26, 2007 7:29 pm    Post subject: Reply with quote

Great! I'll try it out myself when i'll get to it.
Back to top
View user's profile Send private message
Dagger
Retired Dev
Retired Dev


Joined: 11 Jun 2003
Posts: 765
Location: UK

PostPosted: Mon Nov 26, 2007 7:34 pm    Post subject: Reply with quote

I was supposed to update my samba servers last saturday. Good I decided to delay it for another week or I would be in trouble!
_________________
95% of all computer errors occur between chair and keyboard (TM)
Join the FSF as an Associate Member!
Post under CC license.
Back to top
View user's profile Send private message
skogs
n00b
n00b


Joined: 03 Mar 2006
Posts: 28

PostPosted: Mon Nov 26, 2007 11:40 pm    Post subject: argh Reply with quote

My this was frustrating. Why couldn't I find this thread yesterday during the schedule maintenance window? Here I've been beating my head against the wall, tearing apart configuration files, when all that was really necessary was the customary Redmond Fixall...the reboot.
I just sort of assumed that since I'd just upgraded samba and pam, that samba/pam was the problem...not a simple reboot of the CLIENT windows pc. ARgh...

Golf Word.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum