return NT_STATUS_NO_MEMORY;
}
- rc = get_remote_hostname(p->remote_address,
- &rhost,
- talloc_tos());
- if (rc < 0) {
+ rhost = tsocket_address_inet_addr_string(p->remote_address,
+ talloc_tos());
+ if (rhost == NULL) {
return NT_STATUS_NO_MEMORY;
}
- if (strequal(rhost,"UNKNOWN")) {
- rhost = tsocket_address_inet_addr_string(p->remote_address,
- talloc_tos());
- if (rhost == NULL) {
- return NT_STATUS_NO_MEMORY;
- }
- }
/*
* UNIX username case mangling not required, pass_oem_change
return NT_STATUS_INVALID_PARAMETER;
}
- rc = get_remote_hostname(p->remote_address,
- &rhost,
- talloc_tos());
- if (rc < 0) {
+ rhost = tsocket_address_inet_addr_string(p->remote_address,
+ talloc_tos());
+ if (rhost == NULL) {
return NT_STATUS_NO_MEMORY;
}
- if (strequal(rhost,"UNKNOWN")) {
- rhost = tsocket_address_inet_addr_string(p->remote_address,
- talloc_tos());
- if (rhost == NULL) {
- return NT_STATUS_NO_MEMORY;
- }
- }
status = pass_oem_change(user_name,
rhost,
return NT_STATUS_NO_MEMORY;
}
- rc = get_remote_hostname(p->remote_address,
- &rhost,
- talloc_tos());
- if (rc < 0) {
+ rhost = tsocket_address_inet_addr_string(p->remote_address,
+ talloc_tos());
+ if (rhost == NULL) {
return NT_STATUS_NO_MEMORY;
}
- if (strequal(rhost,"UNKNOWN")) {
- rhost = tsocket_address_inet_addr_string(p->remote_address,
- talloc_tos());
- if (rhost == NULL) {
- return NT_STATUS_NO_MEMORY;
- }
- }
/*
* UNIX username case mangling not required, pass_oem_change
return NT_STATUS_NO_SUCH_USER;
}
- rc = get_remote_hostname(p->remote_address,
- &rhost,
- talloc_tos());
- if (rc < 0) {
+ rhost = tsocket_address_inet_addr_string(p->remote_address,
+ talloc_tos());
+ if (rhost == NULL) {
return NT_STATUS_NO_MEMORY;
}
- if (strequal(rhost,"UNKNOWN")) {
- rhost = tsocket_address_inet_addr_string(p->remote_address,
- talloc_tos());
- if (rhost == NULL) {
- return NT_STATUS_NO_MEMORY;
- }
- }
/* ================ BEGIN Privilege BLOCK ================ */