Lines Matching defs:user_handle

403  * LSA interface. A handle for the user is returned in user_handle.
409 mlsvc_handle_t *user_handle)
415 if (ndr_is_null_handle(domain_handle) || user_handle == NULL)
431 ndr_inherit_handle(user_handle, domain_handle);
433 (void) memcpy(&user_handle->handle, &arg.user_handle,
436 if (ndr_is_null_handle(user_handle))
447 * Delete the user specified by the user_handle.
450 samr_delete_user(mlsvc_handle_t *user_handle)
456 if (ndr_is_null_handle(user_handle))
461 (void) memcpy(&arg.user_handle, &user_handle->handle,
464 if (ndr_rpc_call(user_handle, opnum, &arg) != 0) {
467 ndr_rpc_status(user_handle, opnum, arg.status);
473 ndr_rpc_release(user_handle);
543 DWORD account_flags, DWORD *rid, mlsvc_handle_t *user_handle)
579 ndr_inherit_handle(user_handle, domain_handle);
581 (void) memcpy(&user_handle->handle, &arg.user_handle,
586 if (ndr_is_null_handle(user_handle))
747 samr_query_user_info(mlsvc_handle_t *user_handle, WORD switch_value,
754 if (ndr_is_null_handle(user_handle) || user_info == 0)
760 (void) memcpy(&arg.user_handle, &user_handle->handle,
764 if (ndr_rpc_call(user_handle, opnum, &arg) != 0) {
765 ndr_rpc_release(user_handle);
774 ndr_rpc_release(user_handle);
852 samr_query_user_groups(mlsvc_handle_t *user_handle, int *n_groups,
860 if (ndr_is_null_handle(user_handle))
866 (void) memcpy(&arg.user_handle, &user_handle->handle,
869 rc = ndr_rpc_call(user_handle, opnum, &arg);
887 ndr_rpc_release(user_handle);
902 samr_get_user_pwinfo(mlsvc_handle_t *user_handle)
908 if (ndr_is_null_handle(user_handle))
913 (void) memcpy(&arg.user_handle, &user_handle->handle,
916 if (ndr_rpc_call(user_handle, opnum, &arg) != 0) {
919 ndr_rpc_status(user_handle, opnum, arg.status);
925 ndr_rpc_release(user_handle);
938 samr_set_user_info(mlsvc_handle_t *user_handle)
945 if (ndr_is_null_handle(user_handle))
948 if (ndr_rpc_get_ssnkey(user_handle, ssn_key, sizeof (ssn_key)))
953 (void) memcpy(&arg.user_handle, &user_handle->handle,
965 if (ndr_rpc_call(user_handle, opnum, &arg) != 0) {
968 ndr_rpc_status(user_handle, opnum, arg.status);
972 ndr_rpc_release(user_handle);