Bug 1005292 - GECOS changes reflecting in ipa but not in getent command
GECOS changes reflecting in ipa but not in getent command
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa (Show other bugs)
6.5
x86_64 Linux
unspecified Severity unspecified
: rc
: ---
Assigned To: Martin Kosek
Namita Soman
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-06 11:24 EDT by Varun Mylaraiah
Modified: 2013-09-09 16:49 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-09-09 16:49:00 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Varun Mylaraiah 2013-09-06 11:24:26 EDT
Description of problem:
GECOS changes reflecting in ipa but not in /etc/passwd (#getent passwd <user>)

Version-Release number of selected component (if applicable):
ipa-server-3.0.0-34.el6.x86_64 and ipa-server-3.3.1-2.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
[root@server65 ~]# getent passwd gecosuser
gecosuser:*:1804400085:1804400085:wrong format,Redhat:/home/gecosuser:/bin/sh   <-----------------

[root@server65 ~]# ipa user-mod gecosuser --gecos="gecosuser,9988776655,869896,REDHAT"
-------------------------
Modified user "gecosuser"
-------------------------
  User login: gecosuser
  First name: gecosuser
  Last name: gecosuser
  Home directory: /home/gecosuser
  GECOS field: gecosuser,9988776655,869896,REDHAT   <------------------------#reflecting in ipa
  Login shell: /bin/sh
  Email address: gecosuser@testrelm.com
  UID: 1804400085
  GID: 1804400085
  Account disabled: False
  Password: False
  Member of groups: ipausers
  Kerberos keys available: False

[root@server65 ~]# getent passwd gecosuser
gecosuser:*:1804400085:1804400085:wrong format,Redhat:/home/gecosuser:/bin/sh <------------ #not changing here

Expected results:
It should reflect in #getent passwd <user>

Additional info:
http://en.wikipedia.org/wiki/Gecos_field
Comment 2 Rob Crittenden 2013-09-06 11:32:49 EDT
sssd caches this data

Try this after the user-mod but before the second getent:

# sss_cache -U gecosuser
Comment 3 Varun Mylaraiah 2013-09-09 15:55:22 EDT
verified

[root@server65 ~]# ipa user-mod gecostestuser --gecos=testing,9988998899
-----------------------------
Modified user "gecostestuser"
-----------------------------
  User login: gecostestuser
  First name: gecostestuser
  Last name: gecostestuser
  Home directory: /home/gecostestuser
  GECOS field: testing,9988998899
  Login shell: /bin/sh
  Email address: gecostestuser@testrelm.com
  UID: 751400001
  GID: 751400001
  Account disabled: False
  Password: False
  Member of groups: ipausers
  Kerberos keys available: False

[root@server65 ~]# getent passwd gecostestuser
gecostestuser:*:751400001:751400001:testing:/home/gecostestuser:/bin/sh

[root@server65 ~]# sss_cache -U gecostestuser

[root@server65 ~]# getent passwd gecostestuser
gecostestuser:*:751400001:751400001:testing,9988998899:/home/gecostestuser:/bin/sh
Comment 4 Rob Crittenden 2013-09-09 16:49:00 EDT
Ok, closing as NOTABUG. This is expected behavior.

Note You need to log in before you can comment on or make changes to this bug.