Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Distinguished Name as Credential

$
0
0

Hello fellow PoSh experts.  I have an issue that has been driving me up the wall for days.

We have an ADAM instance that will only accept distinguished names for authentication.  It rejects user@domain.com and domain\user logon attempts.  How it got that way?  I would enjoy being elucidated.  I am not a domain admin and cannot easily manipulate this instance.

My issue is, I need to map it and work with it.  So far I have only been able to do an LDAP simple bind and filter it.  I would love to do more.  Technically, it is an ADAM instance, so I should be able to do a new-psdrive or something similar but PS will not accept a distinguished name as a user name when converting to PSCredential.  My current method is resorting to a sad, sad, $credentials = new-object "System.Net.NetworkCredential" -ArgumentList $user,$password (which *cringe* demans a clear-text username/password combo).

Any help would be greatly appreciated.  I do not want to use a chisel and hammer in LDAP-query-ville for this one.


Viewing all articles
Browse latest Browse all 6937

Trending Articles