I need to extract the element from my Distinguished Name into array,and except the DC elemnet.
for exemple :"CN=TestGroup,OU=Groups,OU=UT-SLC,OU=US,DC=Company,DC=com"
I need to have array like below
| Name | Value |
|---|---|
| CN | TestGroup |
| OU | Groups |
| OU | UT-SLC |
| OU | US |
Can someone help me?