Bug 1402508

Summary: Creating private groups for smartcard users when the home directory is created
Product: Red Hat Enterprise Linux 6 Reporter: Roshni <rpattath>
Component: authconfigAssignee: Pavel Březina <pbrezina>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.9CC: pkis, rpattath, tmraz
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1406888 (view as bug list) Environment:
Last Closed: 2017-01-31 13:01:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1406888    

Description Roshni 2016-12-07 17:25:20 UTC
Description of problem:
Creating private groups for smartcard users when the home directory is created

Version-Release number of selected component (if applicable):
authconfig-6.1.12-23.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. Using authconfig UI, enable smartcard login and check "Create home directory at first login" option
2.
3.

Actual results:
User is created during smartcard login but private directory is not created if the ldap user on the smartcard has a group id that does not exist on the client

Expected results:
User and private group should be created at the first login

Additional info:

Comment 2 Roshni 2016-12-21 18:33:05 UTC
The group is created for the user with the group id from the entry but no group name is assigned to the group. This is message I see when I login with the smartcard "/usr/bin/id: cannot find name for group ID 1002

Comment 3 Pavel Březina 2017-01-12 12:58:33 UTC
Does the group entry exist in LDAP?

Comment 8 Roshni 2017-01-23 12:58:00 UTC
I have specified the following:

uid: kdcuser6
uidnumber: 1002
gidnumber: 1002

I was expecting a user would be created with uid and uidnumber values and a private group would be created for the user with the gidnumber and the group name would be the same as uid (kdcuser6). Or am I missing any other parameters?

Comment 9 Tomas Mraz 2017-01-23 13:48:23 UTC
Create home directory functionality just creates the home directory on local filesystem. It won't create user and group accounts.

Comment 10 Pavel Březina 2017-01-31 13:01:15 UTC
I'm closing this as not a bug. Feel free to reopen this bugzilla if you have further issues.