%3CLINGO-SUB%20id%3D%22lingo-sub-1459434%22%20slang%3D%22en-US%22%3EConfigure%20Selective%20Password%20Synchronization%20With%20AADConnect%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1459434%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENamaste%20everyone%2C%20my%20name%20is%20Varun%20Kohli%2C%20I%20am%20an%20Identity%20and%20Security%20Consultant%20at%20Microsoft%20Services%2C%20India.%3C%2FP%3E%0A%3CP%3EThrough%20this%20blog%20I%20would%20like%20to%20share%20details%20about%20how%20we%20can%20configure%20AADConnect%20to%20synchronize%20password%20hashes%20to%20Azure%20AD%20for%20a%20specific%20set%20of%20people.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1324978129%22%20id%3D%22toc-hId--1324978129%22%20id%3D%22toc-hId--1324978129%22%20id%3D%22toc-hId--1324978129%22%20id%3D%22toc-hId--1324978129%22%3E%3CU%3EProblem%20Statement%3A%3C%2FU%3E%3C%2FH2%3E%0A%3CP%3EWe%20generally%20see%20two%20sets%20of%20customers%2C%20the%20first%20who%20want%20to%20use%20the%20modern%20identity%20for%20cloud%20applications%20and%20have%20decided%20to%20synchronize%20the%20hashes%20from%20on-premise%20identity%20systems%20(Active%20Directory)%20and%20the%20second%20who%20are%20not%20comfortable%20with%20password%20hash%20synchronizations%20to%20public%20cloud%20and%20hence%20use%20the%20traditional%20methods%20for%20accessing%20the%20cloud%20applications%20like%20ADFS.%3C%2FP%3E%0A%3CP%3EThis%20blog%20especially%20focuses%20on%20the%202%3CSUP%3End%3C%2FSUP%3E%20set%20of%20customers%20who%20would%20like%20to%20take%20a%20gradual%20approach%20to%20modern%20identity%20and%20would%20like%20to%20start%20slow%20in%20their%20adoption%20by%20only%20targeting%20a%20small%20set%20of%20users%20for%20synchronizing%20password%20hashes.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20instance%2C%20in%20some%20cases%20customers%20may%20like%20to%20have%20password%20hashes%20on%20Azure%20AD%20but%20only%20for%20some%20set%20of%20users.%20%26nbsp%3BThere%20are%20many%20use%20cases%20for%20these%20scenarios%2C%20for%20e.g.%20supporting%20Kerberos%20based%20applications%20in%20Azure%20AD%20or%20in%20the%20lift%20and%20shift%20migration%20approach%20for%20cloud%20applications.%20e.g.%20see%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fhdinsight%2Fdomain-joined%2Fapache-domain-joined-architecture%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EUse%20Enterprise%20Security%20Package%20in%20HDInsight%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EThe%20password%20hash%20synchronization%20method%20provides%20many%20advantages%20and%20enables%20the%20applications%20for%20Modern%20cloud%20identity.%20See%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fhybrid%2Fhow-to-connect-password-hash-synchronization%23how-password-hash-synchronization-works%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EHow%20password%20hash%20sync%20works%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1162534704%22%20id%3D%22toc-hId-1162534704%22%20id%3D%22toc-hId-1162534704%22%20id%3D%22toc-hId-1162534704%22%20id%3D%22toc-hId-1162534704%22%3E%3CU%3EApproach%3A%3C%2FU%3E%3C%2FH2%3E%0A%3CP%3EFor%20users%20whose%20password%20hash%20need%20to%20be%20synchronized%20to%20Azure%20AD%2C%20we%E2%80%99ll%20use%20the%20%E2%80%98adminDescription%E2%80%99%20AD%20attribute%20as%20filter.%20In%20this%20example%2C%20we%20will%20synchronize%20the%20password%20hash%20when%20user%E2%80%99s%20%E2%80%98adminDescription%E2%80%99%20value%20equals%20%E2%80%98SyncHash%E2%80%99.%3C%2FP%3E%0A%3CP%3EWe%20will%20create%20two%20custom%20synchronization%20rules%20in%20AADConnect%2C%20one%20that%20will%20synchronize%20users%20along%20with%20their%20password%20hashes%2C%20and%20the%20other%20that%20will%20synchronize%20users%20but%20not%20their%20password%20hash.%20The%20default%20rule%20with%20password%20sync%20enabled%20will%20be%20disabled.%3C%2FP%3E%0A%3CP%3E%3CU%3EHighly%20recommend%20to%20first%20implement%20this%20in%20Dev%2FTest%20environment.%3C%2FU%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-150px%22%3E%3CU%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PassHashSync-1.jpg%22%20style%3D%22width%3A%20472px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198449iFECEE2E1110E0788%2Fimage-dimensions%2F472x587%3Fv%3D1.0%22%20width%3D%22472%22%20height%3D%22587%22%20title%3D%22PassHashSync-1.jpg%22%20alt%3D%22PassHashSync-1.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FU%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--644919759%22%20id%3D%22toc-hId--644919759%22%20id%3D%22toc-hId--644919759%22%20id%3D%22toc-hId--644919759%22%20id%3D%22toc-hId--644919759%22%3E%3CU%3EChange%20Summary%3A%3C%2FU%3E%3C%2FH2%3E%0A%3CP%3ESummarizing%20all%20activities%20that%20you%E2%80%99ll%20need%20to%20perform%20to%20configure%20AADConnect%20for%20selective%20password%20hash%20sync%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EDisable%20default%20synchronization%20rule%20with%20password%20hash%20sync%20enabled%3C%2FLI%3E%0A%3CLI%3ECreate%20custom%20sync%20rule%20that%20will%20synchronize%20users%20to%20Azure%20AD%20%3CSTRONG%3Ewith%3C%2FSTRONG%3E%20password%20hashes%3C%2FLI%3E%0A%3CLI%3ECreate%20custom%20sync%20rule%20that%20will%20synchronize%20users%20to%20Azure%20AD%20%3CSTRONG%3Ewithout%3C%2FSTRONG%3E%20password%20hashes%3C%2FLI%3E%0A%3CLI%3EEnable%20password%20hash%20sync%20through%20AAD%20Connect%20configuration%20wizard.%3C%2FLI%3E%0A%3CLI%3EValidate%20password%20sync.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1842593074%22%20id%3D%22toc-hId-1842593074%22%20id%3D%22toc-hId-1842593074%22%20id%3D%22toc-hId-1842593074%22%20id%3D%22toc-hId-1842593074%22%3E%3CU%3ESteps%20to%20configure%20AADConnect%20for%20selective%20password%20sync%3A%3C%2FU%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EOn%20the%20AADConnect%20server%2C%20validate%20Password%20Hash%20Sync%20is%20disabled%20before%20making%20this%20change%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PassHashSync-2.jpg%22%20style%3D%22width%3A%20616px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198423iCB5A3AC9D3F1E7D8%2Fimage-dimensions%2F616x423%3Fv%3D1.0%22%20width%3D%22616%22%20height%3D%22423%22%20title%3D%22PassHashSync-2.jpg%22%20alt%3D%22PassHashSync-2.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3EOpen%20Synchronization%20Rules%20Editor%20and%20select%20view%20filter%20as%20%E2%80%98Password%20Sync%E2%80%99%20is%20%E2%80%98On%E2%80%99%20and%20%E2%80%98Rule%20Type%E2%80%99%20%E2%80%98Standard%E2%80%99%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PassHashSync-3.jpg%22%20style%3D%22width%3A%20614px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198424i17BA0F50E53F8CF2%2Fimage-dimensions%2F614x284%3Fv%3D1.0%22%20width%3D%22614%22%20height%3D%22284%22%20title%3D%22PassHashSync-3.jpg%22%20alt%3D%22PassHashSync-3.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3ESelect%20%E2%80%98In%20from%20AD%20%E2%80%93%20User%20AccountEnabled%E2%80%99%20rule%20and%20click%20%E2%80%98Edit%E2%80%99.%20A%20popup%20will%20show%20up%20suggesting%20creating%20an%20editable%20copy%20and%20disable%20the%20original%20rule.%20Click%20%E2%80%98Yes%E2%80%99%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PassHashSync-4.jpg%22%20style%3D%22width%3A%20611px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198425i7DC8D5A4AC7E0D7F%2Fimage-dimensions%2F611x365%3Fv%3D1.0%22%20width%3D%22611%22%20height%3D%22365%22%20title%3D%22PassHashSync-4.jpg%22%20alt%3D%22PassHashSync-4.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%224%22%3E%0A%3CLI%3EFirst%2C%20we%E2%80%99ll%20configure%20sync%20rule%20without%20password%20hash%20sync.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CUL%3E%0A%3CLI%3EProvide%20name%20to%20this%20custom%20rule%20e.g.%20%E2%80%98In%20from%20AD%20-%20User%20AccountEnabled%20-%20No%20Pass%20Sync%E2%80%99.%3C%2FLI%3E%0A%3CLI%3EChange%20precedence%20to%20%E2%80%9899%E2%80%99%20or%20whatever%20minimum%20available%20value.%3C%2FLI%3E%0A%3CLI%3EKeep%20both%20%E2%80%98Enable%20Password%20Sync%E2%80%99%20%26amp%3B%20%E2%80%98Disabled%E2%80%99%20checkboxes%20unchecked%20and%20click%20%E2%80%98Next%E2%80%99%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PassHashSync-5.jpg%22%20style%3D%22width%3A%20616px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198426iEB02A664074082F0%2Fimage-dimensions%2F616x405%3Fv%3D1.0%22%20width%3D%22616%22%20height%3D%22405%22%20title%3D%22PassHashSync-5.jpg%22%20alt%3D%22PassHashSync-5.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorvarunkohli_12%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3COL%20start%3D%225%22%3E%0A%3CLI%3EAt%20%E2%80%98Scoping%20filter%E2%80%99%20screen%2C%20click%20%E2%80%98Add%20clause%E2%80%99%20and%20select%20%E2%80%98adminDescription%E2%80%99%20NOTEQUAL%20%E2%80%98SyncHash%E2%80%99.%20Click%20%E2%80%98Next%E2%80%99%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PassHashSync-6.jpg%22%20style%3D%22width%3A%20614px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198436i320F8AE8B9DCD69F%2Fimage-dimensions%2F614x407%3Fv%3D1.0%22%20width%3D%22614%22%20height%3D%22407%22%20title%3D%22PassHashSync-6.jpg%22%20alt%3D%22PassHashSync-6.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%226%22%3E%0A%3CLI%3ENo%20changes%20required%20on%20%E2%80%98Join%20Rules%E2%80%99%20and%20%E2%80%98Transformations%E2%80%99%20screen.%20Click%20on%20%E2%80%98Save%E2%80%99%3C%2FLI%3E%0A%3CLI%3ENew%20custom%20rule%20with%20No%20Password%20Hash%20sync%20will%20be%20created.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PassHashSync-7.jpg%22%20style%3D%22width%3A%20613px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198437i9888C0C716F532CD%2Fimage-dimensions%2F613x394%3Fv%3D1.0%22%20width%3D%22613%22%20height%3D%22394%22%20title%3D%22PassHashSync-7.jpg%22%20alt%3D%22PassHashSync-7.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%228%22%3E%0A%3CLI%3ENow%20we%E2%80%99ll%20create%20another%20custom%20rule%20but%20with%20Password%20Hash%20Sync%20enabled.%20Again%2C%20look%20for%20%E2%80%98In%20from%20AD%20%E2%80%93%20User%20AccountEnabled%E2%80%99%20standard%20rule%2C%20select%20the%20rule%20then%20click%20on%20%E2%80%98Edit%E2%80%99.%20Click%20%E2%80%98Yes%E2%80%99%20when%20prompted%20to%20create%20new%20rule.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PassHashSync-8.jpg%22%20style%3D%22width%3A%20613px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198439i6799818E53F258FF%2Fimage-dimensions%2F613x392%3Fv%3D1.0%22%20width%3D%22613%22%20height%3D%22392%22%20title%3D%22PassHashSync-8.jpg%22%20alt%3D%22PassHashSync-8.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E9.%20Create%20custom%20rule%20with%20password%20hash%20sync%20enabled.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EProvide%20name%20e.g.%20%E2%80%98In%20from%20AD%20-%20User%20AccountEnabled%20-%20Pass%20Hash%20Sync%E2%80%99.%3C%2FLI%3E%0A%3CLI%3EChange%20precedence%20to%20%E2%80%9898%E2%80%99%20or%20whatever%20minimum%20available%20value.%3C%2FLI%3E%0A%3CLI%3ESelect%20%E2%80%98Enable%20Password%20Sync%E2%80%99%20checkbox%20and%20click%20%E2%80%98Next%E2%80%99%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PassHashSync-9.jpg%22%20style%3D%22width%3A%20612px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198431iE9004B35CD88A5CB%2Fimage-dimensions%2F612x404%3Fv%3D1.0%22%20width%3D%22612%22%20height%3D%22404%22%20title%3D%22PassHashSync-9.jpg%22%20alt%3D%22PassHashSync-9.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorvarunkohli_20%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3COL%20start%3D%2210%22%3E%0A%3CLI%3EAt%20%E2%80%98Scoping%20filter%E2%80%99%20screen%2C%20click%20%E2%80%98Add%20clause%E2%80%99%20and%20select%20%E2%80%98adminDescription%E2%80%99%20EQUAL%20%E2%80%98SyncHash%E2%80%99%20and%20click%20%E2%80%98Next%E2%80%99%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PassHashSync-10.jpg%22%20style%3D%22width%3A%20610px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198442iDE02A5C64F1A7A65%2Fimage-dimensions%2F610x404%3Fv%3D1.0%22%20width%3D%22610%22%20height%3D%22404%22%20title%3D%22PassHashSync-10.jpg%22%20alt%3D%22PassHashSync-10.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E11.%20No%20changes%20required%20on%20%E2%80%98Join%20Rules%E2%80%99%20and%20%E2%80%98Transformations%E2%80%99%20screen.%20Click%20on%20%E2%80%98Save%E2%80%99%3C%2FP%3E%0A%3CP%3E12.%20Make%20sure%20you%20have%20just%20one%20rule%20enabled%20with%20Password%20Sync.%20We%E2%80%99ll%20keep%20standard%20rule%20%E2%80%98In%20from%20AD%20-%20User%20AccountEnabled%E2%80%99%20as%20disabled%20to%20have%20password%20hash%20flow%20only%20from%20the%20custom%20we%20created%20above.%3C%2FP%3E%0A%3CP%3E13.%20To%20validate%20that%20custom%20rules%20are%20getting%20applied%2C%20perform%20%E2%80%98Full%20Sync%20Preview%E2%80%99%20for%20random%20users%20with%20and%20without%20%E2%80%98adminDescription%E2%80%99%20flag%20updated.%3C%2FP%3E%0A%3CP%3E14.%20Users%20with%20%E2%80%98AdminDescription%E2%80%99%20equals%20%E2%80%98SyncHash%E2%80%99%20should%20have%20%E2%80%98Pass%20Hash%20Sync%E2%80%99%20rule%20getting%20applied.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PassHashSync-11.jpg%22%20style%3D%22width%3A%20613px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198443i9CD8A0900CC2D351%2Fimage-dimensions%2F613x484%3Fv%3D1.0%22%20width%3D%22613%22%20height%3D%22484%22%20title%3D%22PassHashSync-11.jpg%22%20alt%3D%22PassHashSync-11.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E15.%20Users%20with%20no%20%E2%80%98AdminDescription%E2%80%99%20flag%20set%20should%20have%20%E2%80%98No%20Pass%20Sync%E2%80%99%20rule%20getting%20applied.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PassHashSync-12.jpg%22%20style%3D%22width%3A%20611px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198444iD6F3EE520D41A380%2Fimage-dimensions%2F611x480%3Fv%3D1.0%22%20width%3D%22611%22%20height%3D%22480%22%20title%3D%22PassHashSync-12.jpg%22%20alt%3D%22PassHashSync-12.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E16.%20After%20validating%20through%20Full%20Sync%20preview%2C%20execute%20Full%20Sync%20Cycle%20to%20let%20new%20custom%20rules%20commit%20for%20all%20users.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EStart-ADSyncSyncCycle%20-PolicyType%20Initial%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E17.%20After%20the%20Full%20Sync%20is%20completed%2C%20validate%20that%20the%20custom%20rules%20got%20applied%20for%20all%20users.%20At%20this%20point%2C%20you%20can%20enable%20password%20hash%20sync%20through%20AAD%20Connect%20configuration%20wizard.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PassHashSync-13.jpg%22%20style%3D%22width%3A%20609px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F198447i3F80C1EFB5D3275D%2Fimage-dimensions%2F609x426%3Fv%3D1.0%22%20width%3D%22609%22%20height%3D%22426%22%20title%3D%22PassHashSync-13.jpg%22%20alt%3D%22PassHashSync-13.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E18.%20To%20confirm%20users%20with%20%E2%80%98adminDescription%E2%80%99%20flag%20set%20only%20are%20getting%20their%20password%20synched%20to%20Azure%2C%20look%20for%20following%20event%20logs%20on%20AAD%20Connect%20server.%3C%2FP%3E%0A%3CTABLE%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22208%22%3E%0A%3CP%3EEvent%20ID%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22208%22%3E%0A%3CP%3EEvent%20Sample%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22208%22%3E%0A%3CP%3ECause%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22208%22%3E%0A%3CP%3E656%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22208%22%3E%0A%3CP%3EPassword%20Change%20Request%20-%20Anchor%20%3A%20H552hI9GwEykZwof74JeOQ%3D%3D%2C%20Dn%20%3A%20CN%3DViola%20Hanson%2COU%3DCloud%20Objects%2CDC%3Dcontoso%2CDC%3Dlocal%2C%20Change%20Date%20%3A%2005%2F01%2F2013%2016%3A34%3A08%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22208%22%3E%0A%3CP%3EPassword%20synchronization%20indicates%20that%20a%20password%20change%20was%20detected%20and%20tries%20to%20sync%20it%20to%20Azure%20AD.%20This%20identifies%20the%20user%20or%20users%20whose%20password%20changed%20and%20will%20be%20synced.%20Each%20batch%20contains%20at%20least%20one%20user%20and%20at%20most%2050%20users.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22208%22%3E%0A%3CP%3E657%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22208%22%3E%0A%3CP%3EPassword%20Change%20Result%20-%20Anchor%3A%20eX5b50Rf%2BUizRIMe2CA%2Ftg%3D%3D%2C%20Dn%20%3A%20CN%3DViola%20Hanson%2COU%3DCloud%20Objects%2CDC%3Dcontoso%2CDC%3Dlocal%2C%20Result%20%3A%20Success.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22208%22%3E%0A%3CP%3EUsers%20whose%20password%20successfully%20synced.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CH2%20id%3D%22toc-hId-35138611%22%20id%3D%22toc-hId-35138611%22%20id%3D%22toc-hId-35138611%22%20id%3D%22toc-hId-35138611%22%20id%3D%22toc-hId-35138611%22%3E%3CU%3EOther%20References%3A%3C%2FU%3E%3CBR%20%2F%3E%3CFONT%20size%3D%223%22%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-au%2Fhelp%2F2855271%2Fhow-to-troubleshoot-password-synchronization-when-using-an-azure-ad-sy%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAADConnect%20Password%20Sync%20Events%3C%2FA%3E%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20reading!%20I%20hope%20this%20helps%20you%20on%20your%20Azure%20and%20Azure%20AD%20journey!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1459434%22%20slang%3D%22en-US%22%3E%3CP%3EThrough%20this%20blog%20I%20would%20like%20to%20share%20details%20about%20how%20we%20can%20configure%20AADConnect%20to%20synchronize%20password%20hashes%20to%20Azure%20AD%20for%20a%20specific%20set%20of%20people.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1459434%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Evarunkohli%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1466848%22%20slang%3D%22en-US%22%3ERe%3A%20Configure%20Selective%20Password%20Synchronization%20With%20AADConnect%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1466848%22%20slang%3D%22en-US%22%3E%3CP%3Ethanks%20for%20sharing%20this%20setup%20..%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1474518%22%20slang%3D%22en-US%22%3ERe%3A%20Configure%20Selective%20Password%20Synchronization%20With%20AADConnect%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1474518%22%20slang%3D%22en-US%22%3E%3CP%3EExcellent%20Article!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1875162%22%20slang%3D%22en-US%22%3ERe%3A%20Configure%20Selective%20Password%20Synchronization%20With%20AADConnect%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1875162%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20for%20this%20article.%20Bookmarked!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

 

Namaste everyone, my name is Varun Kohli, I am an Identity and Security Consultant at Microsoft Services, India.

Through this blog I would like to share details about how we can configure AADConnect to synchronize password hashes to Azure AD for a specific set of people.

 

Problem Statement:

We generally see two sets of customers, the first who want to use the modern identity for cloud applications and have decided to synchronize the hashes from on-premise identity systems (Active Directory) and the second who are not comfortable with password hash synchronizations to public cloud and hence use the traditional methods for accessing the cloud applications like ADFS.

This blog especially focuses on the 2nd set of customers who would like to take a gradual approach to modern identity and would like to start slow in their adoption by only targeting a small set of users for synchronizing password hashes.

 

For instance, in some cases customers may like to have password hashes on Azure AD but only for some set of users.  There are many use cases for these scenarios, for e.g. supporting Kerberos based applications in Azure AD or in the lift and shift migration approach for cloud applications. e.g. see Use Enterprise Security Package in HDInsight

The password hash synchronization method provides many advantages and enables the applications for Modern cloud identity. See How password hash sync works

 

Approach:

For users whose password hash need to be synchronized to Azure AD, we’ll use the ‘adminDescription’ AD attribute as filter. In this example, we will synchronize the password hash when user’s ‘adminDescription’ value equals ‘SyncHash’.

We will create two custom synchronization rules in AADConnect, one that will synchronize users along with their password hashes, and the other that will synchronize users but not their password hash. The default rule with password sync enabled will be disabled.

Highly recommend to first implement this in Dev/Test environment.

 

PassHashSync-1.jpg

 

Change Summary:

Summarizing all activities that you’ll need to perform to configure AADConnect for selective password hash sync:

  1. Disable default synchronization rule with password hash sync enabled
  2. Create custom sync rule that will synchronize users to Azure AD with password hashes
  3. Create custom sync rule that will synchronize users to Azure AD without password hashes
  4. Enable password hash sync through AAD Connect configuration wizard.
  5. Validate password sync.

 

Steps to configure AADConnect for selective password sync:

 

  1. On the AADConnect server, validate Password Hash Sync is disabled before making this change

PassHashSync-2.jpg

 

  1. Open Synchronization Rules Editor and select view filter as ‘Password Sync’ is ‘On’ and ‘Rule Type’ ‘Standard’

PassHashSync-3.jpg

 

  1. Select ‘In from AD – User AccountEnabled’ rule and click ‘Edit’. A popup will show up suggesting creating an editable copy and disable the original rule. Click ‘Yes’

PassHashSync-4.jpg

 

  1. First, we’ll configure sync rule without password hash sync.
  • Provide name to this custom rule e.g. ‘In from AD - User AccountEnabled - No Pass Sync’.
  • Change precedence to ‘99’ or whatever minimum available value.
  • Keep both ‘Enable Password Sync’ & ‘Disabled’ checkboxes unchecked and click ‘Next’

PassHashSync-5.jpg

 
  1. At ‘Scoping filter’ screen, click ‘Add clause’ and select ‘adminDescription’ NOTEQUAL ‘SyncHash’. Click ‘Next’

PassHashSync-6.jpg

 

  1. No changes required on ‘Join Rules’ and ‘Transformations’ screen. Click on ‘Save’
  2. New custom rule with No Password Hash sync will be created.

PassHashSync-7.jpg

 

  1. Now we’ll create another custom rule but with Password Hash Sync enabled. Again, look for ‘In from AD – User AccountEnabled’ standard rule, select the rule then click on ‘Edit’. Click ‘Yes’ when prompted to create new rule.

PassHashSync-8.jpg

9. Create custom rule with password hash sync enabled.

  • Provide name e.g. ‘In from AD - User AccountEnabled - Pass Hash Sync’.
  • Change precedence to ‘98’ or whatever minimum available value.
  • Select ‘Enable Password Sync’ checkbox and click ‘Next’

PassHashSync-9.jpg

 
  1. At ‘Scoping filter’ screen, click ‘Add clause’ and select ‘adminDescription’ EQUAL ‘SyncHash’ and click ‘Next’

PassHashSync-10.jpg

 

11. No changes required on ‘Join Rules’ and ‘Transformations’ screen. Click on ‘Save’

12. Make sure you have just one rule enabled with Password Sync. We’ll keep standard rule ‘In from AD - User AccountEnabled’ as disabled to have password hash flow only from the custom we created above.

13. To validate that custom rules are getting applied, perform ‘Full Sync Preview’ for random users with and without ‘adminDescription’ flag updated.

14. Users with ‘AdminDescription’ equals ‘SyncHash’ should have ‘Pass Hash Sync’ rule getting applied.

 

PassHashSync-11.jpg

 

15. Users with no ‘AdminDescription’ flag set should have ‘No Pass Sync’ rule getting applied.

PassHashSync-12.jpg

 

16. After validating through Full Sync preview, execute Full Sync Cycle to let new custom rules commit for all users.

 

Start-ADSyncSyncCycle -PolicyType Initial

 

 

17. After the Full Sync is completed, validate that the custom rules got applied for all users. At this point, you can enable password hash sync through AAD Connect configuration wizard.

 

PassHashSync-13.jpg

 

18. To confirm users with ‘adminDescription’ flag set only are getting their password synched to Azure, look for following event logs on AAD Connect server.

Event ID

Event Sample

Cause

656

Password Change Request - Anchor : H552hI9GwEykZwof74JeOQ==, Dn : CN=Viola Hanson,OU=Cloud Objects,DC=contoso,DC=local, Change Date : 05/01/2013 16:34:08

Password synchronization indicates that a password change was detected and tries to sync it to Azure AD. This identifies the user or users whose password changed and will be synced. Each batch contains at least one user and at most 50 users.

657

Password Change Result - Anchor: eX5b50Rf+UizRIMe2CA/tg==, Dn : CN=Viola Hanson,OU=Cloud Objects,DC=contoso,DC=local, Result : Success.

Users whose password successfully synced.

Other References:
AADConnect Password Sync Events

 

Thanks for reading! I hope this helps you on your Azure and Azure AD journey!

3 Comments
Senior Member

thanks for sharing this setup ..

New Contributor

Excellent Article!

Regular Visitor

Thanks for this article. Bookmarked!