Getting information from the UNC-CH campus LDAP server

I was using this a few weeks ago when troubleshooting my LDAP email address lookup function in Mulberry. I was wanting to see the fields that the UNC-CH LDAP server was serving out for me to use. Here is the command that worked for me:

ldapsearch -h ldap.unc.edu -x -b “dc=unc, dc=edu” uid=<username>

The uid is the same as the user’s ONYEN (Only Name You’ll Ever Need). If you don’t know the user’s ONYEN, you can use their last name (surname):

ldapsearch -h ldap.unc.edu -x -b “dc=unc, dc=edu” sn=<lastname>

Skebrown thinks this is all pretty crazy. So much information publicly available could be dangerous! Right? I’m not taking any chances. I just found a location on http://studentcentral.unc.edu where I can set my privacy flags. I just configured the LDAP server to just show my name and initials (no phone and address). But a quick check seems to show that the LDAP server is still handing out the address and phone. I’ll have to check into this.

Leave a Reply