Home

Communication Horizons
established 1986

Home
Contact

 

Knowledgebase Index
About Us
Contact
Legacy Products


Communication Horizons
65 High Ridge Rd. #428
Stamford CT 06905

support

800-480-1604
203-321-1278
fax  286-1056

       

Knowledgebase



>>ITEM : N00093
>>DATE: 07/19/96
>>TYPE: Information
>>TITLE: Structure of LOGIN_CONTROL property from NetWare Bindery
>>PRODUCT(S): NetLib (all versions)
>>PLATFORMS(S): NetWare (all versions)

>>SUMMARY:
For informational purposes, the structure of the NetWare Bindery Property "LOGIN_CONTROL" is provided. It is primarily a feature of NetWare 2.x and 3.x. However, for upwards compatibility it is supported in NetWare 4.x under Bindery emulation.

>>MORE INFORMATION:

Structure of LOGIN_CONTROL property from Bindery
Offset Length Description
0 3 Account expiration date

3 1 Account disabled flag

4 3 Password expiration date
7 1 Grace login count

8 2 Password expiration intervals

10 1 Grace login reset value

11 1 Minimum password length

12 2 Maximum concurrent connections

14 42 Allowed login time bitmap
56 3 Last login date
59 3 Last login time
62 1 Restrictions flags
63 1 reserved
64 4 Maximum disk blocks usage
68 2 Bad login count
70 4 Next reset time
74 12 Bad login address

>>NOTE
Date is stored as a 3-byte binary string in the following format:
Offset 0: Year based from 1900 (i.e., year-1900)
Offset 1: Month (1-12)
Offset 2: Day (1-31)

Time is stored as a 3-byte binary string in the following format:
Offset 0: Hours (0-23)
Offset 1: Minutes (0-59)
Offset 2: Seconds (0-59)

>>IMPORTANT NOTE For Clipper and FoxPro users:
Offsets are listed above from base 0 (i.e., the first byte is #0). However, the SUBSTR() function uses offsets from base 1. Thus, the starting SUBSTR value is the offset+1. See the example below.

>>RESOLUTION/FIX:

 

>>EXAMPLE(S):
* Get Smith's grace login count.
* Notice that the SUBSTR() offset is the byte offset + 1
cPropVal = N_B_PRREAD("SMITH",1,"LOGIN_CONTROL")
IF !EMPTY(cPropVal)
nGrace = ASC(SUBSTR(cPropVal,8,1))
ENDIF

>>SEE ALSO:
File LOGINDAT.PRG in the snippets section of NetLib gives an example of extracting the last login date and time from the LOGIN_CONTROL property

>>COPYRIGHT 1997 Communication Horizons
All rights reserved worldwide. No distribution without specific consent of publisher.


Knowledgebase Top Home

 

© Copyright 2001 Communication Horizons LLC.
“NetLib” and “Encryptionizer” are Registered Trademarks of Communication Horizons.
US and international patents pending.
Updated 29 Dec 2001