From e611b132f9b8abe35b362e5870b74bce94a1e58e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 May 2020 20:51:50 -0700 Subject: initial commit --- private/nw/convert/nwconv/usrprop.h | 77 +++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 private/nw/convert/nwconv/usrprop.h (limited to 'private/nw/convert/nwconv/usrprop.h') diff --git a/private/nw/convert/nwconv/usrprop.h b/private/nw/convert/nwconv/usrprop.h new file mode 100644 index 000000000..6c7dbb6e8 --- /dev/null +++ b/private/nw/convert/nwconv/usrprop.h @@ -0,0 +1,77 @@ +/*++ + +Copyright (c) 1993 Micro Computer Systems, Inc. + +Module Name: + + usrprop.h + +Abstract: + + This is the public include file for some of the functions used by + User Manager and Server Manager. + +Author: + + Congpa You 02-Dec-1993 Created. + +Revision History: + +--*/ + +#ifndef _USRPROP_H_ +#define _USRPROP_H_ + +#define USER_PROPERTY_SIGNATURE L'P' + +#define NWPASSWORD L"NWPassword" +#define OLDNWPASSWORD L"OldNWPassword" +#define MAXCONNECTIONS L"MaxConnections" +#define NWTIMEPASSWORDSET L"NWPasswordSet" +#define SZTRUE L"TRUE" +#define GRACELOGINALLOWED L"GraceLoginAllowed" +#define GRACELOGINREMAINING L"GraceLoginRemaining" +#define NWLOGONFROM L"NWLogonFrom" +#define NWHOMEDIR L"NWHomeDir" +#define NW_PRINT_SERVER_REF_COUNT L"PSRefCount" + +#define NWENCRYPTEDPASSWORDLENGTH 8 + +#define NO_LIMIT 0xffff + +#define DEFAULT_MAXCONNECTIONS NO_LIMIT +#define DEFAULT_NWPASSWORDEXPIRED FALSE +#define DEFAULT_GRACELOGINALLOWED 6 +#define DEFAULT_GRACELOGINREMAINING 6 +#define DEFAULT_NWLOGONFROM NULL +#define DEFAULT_NWHOMEDIR NULL + +#define USER_PROPERTY_TYPE_ITEM 1 +#define USER_PROPERTY_TYPE_SET 2 + +//Encryption function +NTSTATUS ReturnNetwareForm (const char * pszSecretValue, + DWORD dwUserId, + const WCHAR * pchNWPassword, + UCHAR * pchEncryptedNWPassword); + +NTSTATUS +SetUserProperty( + IN LPWSTR UserParms, + IN LPWSTR Property, + IN UNICODE_STRING PropertyValue, + IN WCHAR PropertyFlag, + OUT LPWSTR * pNewUserParms, // memory has to be freed after use. + OUT BOOL * Update + ); + +NTSTATUS +QueryUserProperty ( + IN LPWSTR UserParms, + IN LPWSTR Property, + OUT PWCHAR PropertyFlag, + OUT PUNICODE_STRING PropertyValue + ); + +#endif // _USRPROP_H_ + -- cgit v1.2.3