I got a problem to solve. How do i hide the 'dn:' part ?
dn: uid=trebbouh,ou=2017_paris,ou=2017,ou=paris,ou=people,dc=42,dc=fr
This is the command I used : ldapsearch -x -LLL uid=$USER -W
I got a problem to solve. How do i hide the 'dn:' part ?
dn: uid=trebbouh,ou=2017_paris,ou=2017,ou=paris,ou=people,dc=42,dc=fr
This is the command I used : ldapsearch -x -LLL uid=$USER -W
You can specify which attributes you want to have displayed as the results of a query at the end of your query. For instance if you just want the "mail" and "uid" attributes your command would be
ldapsearch -x -LLL uid=$USER -W mail uid
Alternatively you could just pipe the results through "grep -v dn:"