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
freeipa-users@lists.fedorahosted.org