On la, 10 joulu 2022, Philippe de Rochambeau via FreeIPA-users wrote:
Hello, I'm wondering if there exists a simple way to enrich values returned by ipa, with external data (eg., telephone numbers). You could of course write a Python script to first query a, say,  Phone Directory database application, then retrieve all users in ipa and merge the two kinds of data. But I'm looking for a more lightweight approach, which ideally doesn't involve external databases.

In general, nothing prevents you from writing a server-side IPA API
plugin that would pull this data from somewhere and combine it with
other content for the specific object (user in this case). It is not
done by default for obvious reasons: IPA has no knowledge about these
external databases and cannot provide such functionality by default.

Phone numbers are part of IPA user object by default, so if you'd store
that information in IPA LDAP, you'd get it returned. 'ipa user-add' or
'ipa user-mod' both support these additional options which is typically
enough to cover a traditional directory information:

  --street=STR          Street address
  --city=STR            City
  --state=STR           State/Province
  --postalcode=STR      ZIP
  --phone=STR           Telephone Number
  --mobile=STR          Mobile Telephone Number
  --pager=STR           Pager Number
  --fax=STR             Fax Number
  --orgunit=STR         Org. Unit
  --title=STR           Job Title
  --manager=STR         Manager
  --carlicense=STR      Car License
..
  --departmentnumber=STR
                        Department Number
  --employeenumber=STR  Employee Number
  --employeetype=STR    Employee Type
  --preferredlanguage=STR
                        Preferred Language




--
/ Alexander Bokovoy
Sr. Principal Software Engineer
Security / Identity Management Engineering
Red Hat Limited, Finland
_______________________________________________
FreeIPA-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue
  • [Freeipa-users] Adding data Philippe de Rochambeau via FreeIPA-users
    • [Freeipa-users] Re: Adding d... Alexander Bokovoy via FreeIPA-users

Reply via email to