[Freeipa-users] Why are some user's information not stored in the LDAP database?

Fujisan fujisan43 at gmail.com
Fri Oct 16 14:01:08 UTC 2015


Yes, sorry, you're right. It works. I was using the wrong command:

$ ldapsearch -x -h localhost uid=smith

instead of

$ ldapsearch -x -h localhost -D cn=directory\ manager -W -b
cn=users,cn=accounts,dc=example,dc=test uid=smith




On Fri, Oct 16, 2015 at 3:52 PM, David Kupka <dkupka at redhat.com> wrote:

> On 16/10/15 15:26, Fujisan wrote:
>
>> Hello,
>>
>> When I enter the email address, the phone number or the mailing address of
>> ipa user 'smith' in the web ui "Identity/Users/smith", it does not appears
>> in the output of ldapsearch.
>> Sendmail can look into the ldap database and get the email address of a
>> user and send mail to that user.
>>
>> Is it possible to add those info especially the email address in the ldap
>> database?
>>
>> Regards,
>> Fuji.
>>
>>
>>
>>
> Hello,
> I just tried and it worked as expected. Could you post your ldapsearch and
> its result?
>
> $ ldapsearch -D"cn=Directory Manager" -w Secret123 -h localhost -b
> cn=users,cn=accounts,dc=example,dc=test uid=tuser1
> # extended LDIF
> #
> # LDAPv3
> # base <cn=users,cn=accounts,dc=example,dc=test> with scope subtree
> # filter: uid=tuser1
> # requesting: ALL
> #
>
> # tuser1, users, accounts, example.test
> dn: uid=tuser1,cn=users,cn=accounts,dc=example,dc=test
> displayName: Test User
> uid: tuser1
> objectClass: ipaobject
> objectClass: person
> objectClass: top
> objectClass: ipasshuser
> objectClass: inetorgperson
> objectClass: organizationalperson
> objectClass: krbticketpolicyaux
> objectClass: krbprincipalaux
> objectClass: inetuser
> objectClass: posixaccount
> objectClass: ipaSshGroupOfPubKeys
> objectClass: mepOriginEntry
> loginShell: /bin/sh
> initials: TU
> gecos: Test User
> sn: User
> homeDirectory: /home/tuser1
> mail: tuser1 at example.test
> krbPrincipalName: tuser1 at EXAMPLE.TEST
> givenName: Test
> cn: Test User
> ipaUniqueID: 0c246a30-740c-11e5-986e-001a4a231292
> uidNumber: 383200003
> gidNumber: 383200003
> mepManagedEntry: cn=tuser1,cn=groups,cn=accounts,dc=example,dc=test
> memberOf: cn=ipausers,cn=groups,cn=accounts,dc=example,dc=test
>
> # search result
> search: 2
> result: 0 Success
>
> # numResponses: 2
> # numEntries: 1
>
> --
> David Kupka
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/freeipa-users/attachments/20151016/9df03b67/attachment.htm>


More information about the Freeipa-users mailing list