[Date Prev][Date Next] [Chronological] [Thread] [Top]

predefining attributes values?



Hi all,

I'm relatively new to ldap, so please bare with me.

using openldap 1.2.13, and just wondering if it's possible to
predefine attribute values before including them in LDIF entries?

for instance,

	objectclass  weekend
	 requires
		     beer,
		     cigs,
		     nosleep
	allows
	             exercise

but to have 'beer' defined as '255', 'cigs' be defined as 'none' etc,
then, when including this objectclass in an ldif, to add it, then when reading
the 'beer' attribute for a uid, for it to return the predefined value of '255' ??

Thanks a bunch.

dan.


-- 
                           /   \
 _                 )      ((   ))     (
(@)               /|\      ))_((     /|\                 _
|-|`\            / | \    (/\|/\)   / | \               (@)
| | ------------/--|-voV---\`|'/--Vov-|--\--------------|-|
|-| danny webster    '^`   (o o)  '^`                   | |
| | senior unix engineer   `\Y/'        One.Tel         |-|
|-| +44 (0)20 7181 7181                                 | |
| |  0x44 0x41 0x4E 0x57 0x45 0x42 0x53 0x54 0x45 0x52  |-|
|_|_____________________________________________________| |
(@)       l   /\ /         ( (       \ /\   l         `\|-|
          l /   V           \ \       V   \ l           (@)
          l/                _) )_          \I
                            `\ /'
                              '