Bug 460555

Summary: YaST Problems Creating Samba Users in LDAP - No samba* Attributes
Product: [openSUSE] openSUSE 11.0 Reporter: John Frickson <jfrickson>
Component: YaST2Assignee: Lukas Ocilka <locilka>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P3 - Medium CC: jsuchome, locilka, ralf
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.0   
Whiteboard: maint:released:11.1:23596 maint:released:sle11:23581
Found By: Community User Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: ZIP file of ldap.conf, slapd.conf, smb.conf
Complete patch

Description John Frickson 2008-12-19 09:06:55 UTC
Created attachment 261127 [details]
ZIP file of ldap.conf, slapd.conf, smb.conf

Background: Currently running an openSUSE 10.2 x86 file server. Installing 11.0 x86_64 on a new disk. Ran a full install that included Samba, LDAP. Set up both Samba and LDAP.

The usertemplate and grouptemplate in LDAP did NOT include the UsersPluginSamba and UsersPluginSambaGroup susePlugin attributes, so I added them manually. Other than that, the configurations and templates are the same between the two servers. /etc/ldap.conf, /etc/openldap/ldap.conf, /etc/openldap/slapd.conf, and /etc/samba/smb.conf are identical.

Problem: Adding a user using YaST User and Group Administration does not add any Samba attributes to the LDAP entry. The Samba plugin is not available on the plugins page. Without the samba* attributes, users are unable to access file shares. The LDAP lookup fails trying to locate the user because the users don't have an objectType of sambaSamAccount.

Config files attached.
Comment 1 Lukas Ocilka 2009-01-15 16:29:06 UTC
Sorry, I don't know anything about Users in LDAP -> jsuchome
Comment 2 Jiří Suchomel 2009-01-15 19:27:09 UTC
The Samba plugin for users gets available when you install (and maybe configure?) yast2-samba-server. Try that and see if it works (I hope it does).
Comment 3 John Frickson 2009-01-15 19:39:11 UTC
yast2-samba-server is installed and configured. I've verified that all files in the package exist on my server in the correct locations. Is there a configuration file somewhere that tells the yast user and group modules to use the samba plugins? Maybe a config option didn't get set.
Comment 4 John Frickson 2009-01-15 19:40:54 UTC
Sorry, forgot to clear NEEDINFO.
Comment 8 Jiří Suchomel 2009-01-16 10:27:20 UTC
Lukas, remove the check for expert UI from both UsersPluginSamba.pm and UsersPluginSambaGroups.pm (just remove that if clause from Restriction functions).
Comment 9 Lukas Ocilka 2009-01-16 12:34:40 UTC
Created attachment 265624 [details]
Complete patch
Comment 12 John Frickson 2009-01-16 16:51:29 UTC
That took care of it.

Looking at the ProductFeatures.ycp file, I see it gets that setting from /etc/YaST2/ProductFeatures, and that file sets "ui_mode" to "simple". How did that get set? (That's probably a rhetorical question...)
Comment 13 Lukas Ocilka 2009-01-16 16:54:40 UTC
Sorry, the information was requested from Anja.

And yes, it takes that value from /etc/YaST2/ProductFeatures, but it seems the ui_mode itself is obsolete.
Comment 15 Lukas Ocilka 2009-01-21 11:28:42 UTC
OK, fixed for "upstream" -> Update for 11.1 will be released.
Comment 16 Swamp Workflow Management 2009-03-13 11:56:19 UTC
The SWAMPID for this issue is 23088.
Please submit the patch and patchinfo file using this ID.
(https://swamp.suse.de/webswamp/wf/23088)
Comment 17 Swamp Workflow Management 2009-05-28 13:41:49 UTC
Update released for: yast2-samba-server
Products:
openSUSE 11.1 (i586)
Comment 18 Swamp Workflow Management 2009-05-28 22:08:33 UTC
Update released for: yast2-samba-server
Products:
SLE-DESKTOP 11 (i386, x86_64)
SLE-SERVER 11 (i386, ia64, ppc64, s390x, x86_64)