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

Re: Samba Login Script in LDAP



> > Define an attribute to store the script,  if you don't 
> > have an OID I'm willing to define one for you - since 
> > this sounds like not a half-bad idea.
> Adam, I have an OID to define this attribute, my tree OID's is 
> this:
> 1.3.6.1.4.1.17307 - Tribunal Regional do Trabalho da 15ª Região 
> 1.3.6.1.4.1.17307.1 - LDAP Elements
> 1.3.6.1.4.1.17307.1.1 - LDAP Attributes
> and the OID for this new login script attribute can be 
> 1.3.6.1.4.1.17307.1.1.3
> But my big problem is, how I define a text attribute. I don't 
> know the attribute definition format. Can somebody help me ?

Syntax 1.3.6.1.4.1.1466.115.121.1.5 (binary) should work, since I assume
it could contain carriage-returns, or even UniCode (since it is actually
a WinY2k text file), etc...

attributetype (1.3.6.1.4.1.17307.1.1.3
        NAME 'sambaLogonScriptText'
        DESC 'Samba Logon Script'
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.5 SINGLE-VALUE )

I think thats right, I haven't tested it.