It is a 168 bit binary blob. Each bit represents a single hour, 0 means no
logon, 1 means logon allowed.  

So, you will generate 21 bytes from the 168 bits and then slap that raw
binary blob into the attribute. Not sure how to do this with ADSI if using
it but in c++ and LDAP API (and possibly with perl and NET::LDAP) it is
pretty easy, worst comes to worst, you should be able to call out to admod
to do it with the BIN## mechanism and a HEX string to tell it it is setting
a binary value. It should look something like BIN##logonHours::FFFF45FF6
blah blah blah.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mayuresh Kshirsagar
Sent: Tuesday, August 02, 2005 1:37 AM
To: [email protected]
Subject: RE: [ActiveDir] Setting logonHours through Perl Script

I see we have to set a 21 byte value for this. How can I set a 21 byte value
for this?? Any ideas will be of great help.

Thanks,
Mayuresh

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mayuresh Kshirsagar
Sent: Monday, August 01, 2005 12:41 PM
To: [email protected]
Subject: [ActiveDir] Setting logonHours through Perl Script

Hi,

I want to set the logon hours attribute through a perlscript. Can you guide
me as to how can I do it? Also the format of the logonHours attribute??

Thanks in Advance,
Mayuresh.

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to