Bug 1301098 - Custom attribute map not work.
Summary: Custom attribute map not work.
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: sssd
Version: 23
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jakub Hrozek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-22 15:18 UTC by Testino
Modified: 2016-02-01 09:30 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-01 09:23:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
attribute.ldif (385 bytes, text/plain)
2016-01-22 15:19 UTC, Testino
no flags Details
objectclass.ldif (229 bytes, text/x-ldif)
2016-01-22 15:19 UTC, Testino
no flags Details
value.ldif (106 bytes, text/plain)
2016-01-22 15:19 UTC, Testino
no flags Details

Description Testino 2016-01-22 15:18:10 UTC
Description of problem:
I try add new custom attibute in Freeipa on user, and map this attribute on host like homedirectory, but unsuccessful.
i hope you help me, thanks you =)

Version-Release number of selected component (if applicable):
[root@ipa1 ~]# cat /etc/redhat-release 
Fedora release 23 (Twenty Three)
[root@ipa1 ~]# rpm -qa | egrep "ipa|sssd"
python2-ipalib-4.3.0-1.fc23.x86_64
freeipa-client-common-4.3.0-1.fc23.noarch
sssd-krb5-common-1.13.3-1.fc23.x86_64
sssd-krb5-1.13.3-1.fc23.x86_64
python-sssdconfig-1.13.3-1.fc23.noarch
freeipa-server-trust-ad-4.3.0-1.fc23.x86_64
python3-iniparse-0.4-16.fc23.noarch
freeipa-server-common-4.3.0-1.fc23.noarch
freeipa-common-4.3.0-1.fc23.noarch
libipa_hbac-1.13.3-1.fc23.x86_64
sssd-client-1.13.3-1.fc23.x86_64
python-ipaddress-1.0.7-4.fc23.noarch
python3-sssdconfig-1.13.3-1.fc23.noarch
freeipa-admintools-4.3.0-1.fc23.noarch
python2-ipaclient-4.3.0-1.fc23.noarch
python2-ipaserver-4.3.0-1.fc23.noarch
sssd-common-1.13.3-1.fc23.x86_64
sssd-common-pac-1.13.3-1.fc23.x86_64
sssd-ipa-1.13.3-1.fc23.x86_64
sssd-ldap-1.13.3-1.fc23.x86_64
sssd-1.13.3-1.fc23.x86_64
freeipa-client-4.3.0-1.fc23.x86_64
freeipa-server-4.3.0-1.fc23.x86_64
freeipa-server-dns-4.3.0-1.fc23.noarch
sssd-ad-1.13.3-1.fc23.x86_64
sssd-proxy-1.13.3-1.fc23.x86_64
python-libipa_hbac-1.13.3-1.fc23.x86_64

How reproducible:


Steps to Reproduce:
1. Import new attribute and objectclasss -> add objectclasss as default for user ->  create new user ->  set attibute value for user
ldapmodify -ZZ -x -D "cn=Directory Manager" -W  -H ldap://localhost  -f attribute.ldif 
ldapmodify -ZZ -x -D "cn=Directory Manager" -W  -H ldap://localhost  -f objectclass.ldif
ldapmodify -ZZ -x -D "cn=Directory Manager" -W  -H ldap://localhost  -f value.ldif
2. Add line to /etc/sssd/sssd.conf in [domain/ipa.domain] section, ldap_user_home_directory = homeftp1
3. systemctl restart sssd && sss_cache -E

Actual results:
[root@ipa1 ~]# getent passwd test2
test2:*:516000010:516000010:test2 test444:/:/bin/sh

Expected results:
[root@ipa1 ~]# getent passwd test2
test2:*:516000010:516000010:test2 test444:/ftp/path:/bin/sh

Additional info:

Comment 1 Testino 2016-01-22 15:19:00 UTC
Created attachment 1117223 [details]
attribute.ldif

attribute.ldif

Comment 2 Testino 2016-01-22 15:19:29 UTC
Created attachment 1117224 [details]
objectclass.ldif

Comment 3 Testino 2016-01-22 15:19:55 UTC
Created attachment 1117226 [details]
value.ldif

Comment 4 Martin Kosek 2016-01-25 15:17:24 UTC
The server value looks OK, moving to SSSD for consideration.

I would be quite interested what is the use case for using home directory attributes that way, it is certainly the first time I see a use like this one.

Comment 5 Lukas Slebodnik 2016-01-25 15:33:44 UTC
Please provide sssd sssd log files with high debug level (9)
https://fedorahosted.org/sssd/wiki/Troubleshooting

Comment 6 Testino 2016-02-01 09:23:23 UTC
find another solution for me, use id view for remap homedirectory user per host.


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