Watson
Watson

Reputation: 1425

Add an alias to a schema object in OpenLdap

Is it possible to add an alias to a schema atrribute type in openldap? Could anyone provide the command line instruction to accomplish this?

For example,

Description RFC2256: Telephone Number
OID 2.5.4.20
Obsolete    No
Inherits from   
Equality    telephoneNumberMatch
Ordering    (not specified)
Substring Rule  telephoneNumberSubstringsMatch
Syntax  Telephone Number (1.3.6.1.4.1.1466.115.121.1.50)
Single Valued   No
Collective  No
User Modification   Yes
Usage   (not specified)
Maximum Length  32 characters
Aliases (none)
Used by objectClasses   dmd documentSeries domain organization            organizationalPerson organizationalRole organizationalUnit person    residentialPerson RFC822localPart room
Force as MAY by config  No

I want to update the Aliases from none to "Test1"

Upvotes: 4

Views: 786

Answers (1)

user207421
user207421

Reputation: 310913

You need to locate the scheme entry in one of the files in the schemas directory and add the alias there. You'll find other examples in those files of what an alias looks like. Then just restart the server.

Upvotes: 2

Related Questions