Skip to content

Commit

Permalink
Merge pull request #10 from crobby/dntokens
Browse files Browse the repository at this point in the history
Fix tokens going to local principal
  • Loading branch information
nflynt committed Aug 4, 2023
2 parents de38ffe + 26dd505 commit 9b8fd58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/agent/clean/active_directory.go
Expand Up @@ -668,7 +668,7 @@ func migrateTokens(workunit *migrateUserWorkUnit, sc *config.ScaledContext, dryR
}

localPrincipalID := localPrefix + workunit.originalUser.Name
for _, userToken := range workunit.guidTokens {
for _, userToken := range workunit.duplicateLocalTokens {
if dryRun {
logrus.Infof("[%v] DRY RUN: would migrate Token '%v' from duplicate local user '%v' to original user '%v'", migrateTokensOperation, userToken.Name, userToken.UserPrincipal.Name, localPrincipalID)
} else {
Expand Down

0 comments on commit 9b8fd58

Please sign in to comment.