Page 1 of 1

Adding / changing directory attributes from CLI

Posted: Wed Jul 12, 2006 2:20 am
by tenaciousC
Hi All,

Currently the SAC has a few useful attributes missing when settng up users. I believe plans are afoot to be able customise what attributes are shown there....

In the meantime I would like to add JOB-TITLE using CLI

I thought the correct way to do was a follows

Code: Select all

ommodu - n Tenacious/MAILNODE -m "JOB-TITLE=IT GodKing"


I do this and get the reassuring : ommodu: The user was modified successfully

However when I do an

Code: Select all

omsearch -e S=Tenacious


I see that JOB-TITLE has not been added.

I have even tried modifying existing attributes in the same fashion and again nothing changes.

What am I doing wrong?

Cheers!

C

Posted: Wed Jul 12, 2006 4:35 am
by Valerion
The correct way to do it would be with ommodent. ommodu only modifies a few attributes (basically what's shown with omshowu).

Code: Select all

ommodent -e "S=surname/G=firstname" -n "JOB-TITLE=IT GodKing"

Posted: Wed Jul 12, 2006 7:59 am
by ScalixSupport
Hi,

A word of caution. Be very careful when using ommodent as it might render your user unusable if used incorrectly.

Cheers,
Yuri

Posted: Wed Jul 12, 2006 12:58 pm
by tenaciousC
Hi,

Thanks for that!

Yuri - would you care to expand on your prophecy of doom?? :shock:

What incorrect use should be avoided?

Cheers!

C