Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Merged PR 7575: Return ldap rename error when failing to move compute…
Browse files Browse the repository at this point in the history
…r object #157292

When failing to rename the computer object on a join, ldap returns error code LDAP_OTHER (0x50 ) which maps to LW_ERROR_UNKNOWN.  If joining and attempting to move the computer object, translate that to an LW_ERROR_LDAP_RENAME_FAILED and display a meaningful error to the user.
  • Loading branch information
dmorash-BT authored and rbest-bt committed Aug 28, 2018
1 parent f4e2d52 commit f2bfc6d
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 63 deletions.
3 changes: 3 additions & 0 deletions domainjoin/libdomainjoin/src/djauthinfo.c
Expand Up @@ -1264,6 +1264,9 @@ the dnsHostName and/or servicePrincipalName(SPN) attribute in its Active Directo
Once the problem is resolved, you may join the computer to the \"%s\" domain.\n", options->domainName, options->domainName);
LW_RAISE_EX(exc, LW_ERROR_LDAP_CONSTRAINT_VIOLATION_SPN, "Lsass Error", duplicateSPNErrorMsg);
break;
case LW_ERROR_LDAP_RENAME_FAILED:
LW_RAISE_EX(exc, LW_ERROR_INVALID_OU, "Lsass Error", "The computer name already exists and could not be moved to the requested OU. Please verify the requested OU exists.");
break;
default:
LW_RAISE_LSERR(exc, dwError);
break;
Expand Down

0 comments on commit f2bfc6d

Please sign in to comment.