Default objectClass for new WebADM/User/Unix Account

124 views
Skip to first unread message

Jon

unread,
Jul 26, 2012, 7:46:25 AM7/26/12
to rcdevs-t...@googlegroups.com
Hi,

I've been trawling around various bits of documentation for a while now trying to work this one out, wondered if anyone here can help.

I have an LDAP ObjectClass with my custom attributes for our organisation called "tt4Account", this has a few basic attributes defined, e.g. Role.

I'm trying to work out howto get this objectclass assigned to new users by default. I've found the optionsets, and LDAP Defaults - this works for attributes in the objectclasses already included by default i.e. using phone from inetorgperson, however when I try "objectclass=tt4Account,Role=TestTest" it doesnt work.

If I find an existing user, and add the objectclass tt4Account, then it automatically gets assigned the attribute Role=TestTest - so I know this is working to a degree, it's just not adding the tt4Account objectclass to newly created users.

It seems you cannot assign an objectclass here, any clues as to how I would do this please ? I've had a dig around in webadm.conf, but I'm not convinced this is the right place either.

Many thanks,

Jon Wilson

Administrators

unread,
Jul 26, 2012, 8:00:35 AM7/26/12
to RCDevs Security Solutions - Technical
That's very easy:
Edit /opt/webadm/conf/objects.xml. You will find here all the objects
you can create with WebADM.
You can modify existing object definitions and even add new.

In your case, go to the XML block starting with : <ObjectClass
name="$webadm_account_oclasses"
And add your class "tt4Account" to the auxclasses : auxclasses="user,
person, inetorgperson, securityprincipal, tt4Account"

This is for the WebADM Accounts and you can do it for normal user
accounts by doing the same in the <ObjectClass name="user"

If you want some specific attributes of the class to be part of the
"Add Attribute" list (in the WebADM user edit) and proposed as
optional attribute (in the WebADM creation/extension forms), then you
can specify your attributes with an "Attribute" XML block in the
objects.xml.

Restart your WebADM and you will have the class added to the creation
forms.

Jon

unread,
Jul 26, 2012, 8:12:39 AM7/26/12
to rcdevs-t...@googlegroups.com
Many thanks for the super speedy response ...  you guys rock :)

RCDevs +++++++++++++

(I so should have seen the objects.xml - Doh !)
Reply all
Reply to author
Forward
0 new messages