This issue is related to the issue:
https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedoraho...
Hello,
Can someone please help me to add a picture to the freeipa user, i did the following
steps:
1- Create a new file with ldif extension: $vi test.ldif
2- copy the following lines:
dn: cn=schema
changetype: modify
add: attributeTypes
attributeTypes: ( 2.25.28639311321113238241701611583088740684.14.2.2
NAME 'UsersPicture'
EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
X-ORIGIN 'Extending FreeIPA' ) dn: cn=schema)
dn: cn=schema
changetype: modify
add: objectclasses
objectclasses: ( 2.25.28639311321113238241701611583088740684.14.2.1 (Not sure if it should
be the same than attribute and change 2 by 1 at the end)
NAME 'customPerson' SUP person
STRUCTURAL
MAY ( UsersPicture )
X-ORIGIN 'Extending FreeIPA' )
3- Get kerberos ticket:
$kinit admin
4- add the attribute and objectclass to the ldap with the following command (joined
webpage About the IDM client tools):
$ldapmodify -D "cn=Directory Manager" -W -p 389 -h
ipaserver.example.com -f
test.ldif -v
5- Restart freeipa server:
$ipactl restart
6- ipa config-mod --addattr=ipaUserObjectClasses=object_class_name_added_above
7- Add the attribute to a user
$ ipa user-mod ttest1 --addattr=UsersPicture=path_to_the_picture
8- Verify if the user has the new attribute:
$ipa user-show --all loginname | grep UsersPicture
$userspictures: L2hvbw....uanBn
How to add this attribute to the GUI users to check if the picture is working ?
Thanks,