[Bug 382960] New: pam_mount fails when winbind separator is a backslash
https://bugzilla.novell.com/show_bug.cgi?id=382960 Summary: pam_mount fails when winbind separator is a backslash Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: tom@touchtronics.com QAContact: qa@suse.de Found By: Customer pam_mount fails when the winbind separator is a backslash. This is unfortunate because backslash is the default for openSUSE and for several reasons it is probably the best choice. Here's the problem: ------------------- When trying to mount a shared resource via pam_mount the username "user=DOMAIN\username" becomes "user=DOMAINusername". This happens when pam_mount.conf passes the DOMAIN\username and DOMAIN\groupname to mount, mount.cifs, smbmount, or whatever. Temporary solution: ------------------- To rectify this situation I wrote a perl script to replace all occurances of the "DOMAIN" with "DOMAIN\\". The first "\" character escapes the second "\" character, thus the correct DOMAIN\username is sent. To minimize unwanted replacements in other command line parameters, my script only replaces the DOMAIN if it directly follows a "=". Not very sophisticated, but it's better than nothing. See http://www.excusemeplease.org/computers/linux/pam_mount.shtml for more details about the workaround. Suggested permanent solution: ----------------------------- Change the way user names are parsed in pam_mount and mount.cifs so that the winbind separator is respected no matter what it is. This may involve reading smb.conf to determine just exactly what the winbind separator is. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=382960
Robert Vojcik
https://bugzilla.novell.com/show_bug.cgi?id=382960
User mc@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=382960#c1
Michael Calmer
https://bugzilla.novell.com/show_bug.cgi?id=382960
User tom@touchtronics.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=382960#c2
--- Comment #2 from Tom Sneddon
https://bugzilla.novell.com/show_bug.cgi?id=382960
User tom@touchtronics.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=382960#c3
Tom Sneddon
https://bugzilla.novell.com/show_bug.cgi?id=382960
User mc@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=382960#c4
Michael Calmer
https://bugzilla.novell.com/show_bug.cgi?id=382960
User jengelh@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=382960#c5
Jan Engelhardt
participants (1)
-
bugzilla_noreply@novell.com