beautypg.com

Apple AppleShare 3.0 Users and Groups Programming Interface User Manual

Page 21

background image

62 ugPwdExpDate long days before

passwords expire

UGGetULInfo returns the characteristics of the AppleShare File Server 3.0 or

the Macintosh File Sharing server. The information returned includes

ugSrvrVersion, the version number of the server; ugNamePtr (a pointer to a

Str31), the name of the server; ugSrvrFlags (an array of two longs), the

server settings (further described in "Data Structures," later in this

document); ugMinPwdLen, the minimum password

length; ugMaxBadLogins, the maximum number of failed login attempts that the

file server can allow; and ugPwdExpDate, the number of days before user

passwords expire.

A ugSrvrVersion value of Sys7SrvrVer (3) indicates Macintosh File Sharing and

a value of AS3SrvrVer (4) indicates the AppleShare File Server 3.0.

Result Codes

noErr 0 No error.

ugULInfoRecNotCreated 3 There is a problem with the users

and groups file. Delete it and

re-create it.

ugBadParamErr 13 async is TRUE.

ugFatalError 99 There is a problem with the users

and groups file. Delete it and

re-create it.

UGSetULInfo

FUNCTION UGSetULInfo (thePB: UserGroupPBPtr; async: BOOLEAN): OSErr;

pascal OSErr UGSetULInfo (UserGroupPBPtr thePB, Boolean async)

Parameter Block 24 ugRefNum word file reference

number

30 ugAccessID long program access ID

42 ugAdminKey long pointer to

administrator

password

46 ugSrvrVersion word server version

number

48 ugChngFlags word change flag codes

50 ugSrvrFlags 8 bytes server flags

(two longs)

58 ugMinPwdLen byte minimum password

length