Home |
Function SMB3SAddUser |
Function SMB3SAddUserThis function defines a user which may log into the SMB3 server. int SMB3SAddUser(const char * UserName, const char * Password, int DefaultAccess); ParametersUserNameName of the User. The name must not be longer than 250 characters. PasswordThe user's password. The password must not be longer that 100 characters. If this parameter is NULL or "", no authentication is required for this user. DefaultAccessThe default access rights this users has for all shares for which SMB3SAccessRights has not been called. Supported values are SMB3S_USER_READ_WRITE, SMB3S_USER_READ_ONLY, SMB3S_USER_QUERY_ONLY, SMB3S_USER_NO_ACCESS. return valueA unique UserId >= 0 on success or a value < 0 on failure. All string parameters passed to this function must be permanently allocated (string constants, global variables, heap allocated, but not local/stack allocated) as only the pointers to the strings are copied. All strings may be accessed after the function returns. If different access rights should be applied for different shares, the deviating rights may be defined through function SMB3SAccessRights. The SMB3 server supports up to 32 users.
|