I have a mixed environment that has Novell and Sun One as well as AD so I want to be able to connect to those LDAP directories. I know this is possible using VB but as I am now trying to use PowerShell for everything. I want to know if there is a way to do this by using PowerShell.
This is the Vb Code I use at present:
Set NWIDirAuthenticator1 = CreateObject("NWIDirAuthLib.NWIDirAuthenticator.1")
Set NWIDirQuery1 = CreateObject("NWIDirQueryLib.NWIDirQuery.1.2")
strServer = "Server"
strTree = "Tree"
'initialize the Authenticator control and connect to the LDAP Directory NWIDirAuthenticator1.FullName = "LDAP://164.99.150.79/o=novell"
' connect anonymously to e-directory
NWIDirAuthenticator1.FullName = "LDAP://" & strServer & "/o=bskyb"
NWIDirAuthenticator1.Connect
'get the NWConnection object from Authenticator object
Set NWConnection = NWIDirAuthenticator1.Connection
'pass this connection object to other LDAP controls.
NWIDirQuery1.SetConnection NWConnection
NWIDirQuery1.Filter = "objectclass=person"
NWIDirQuery1.Fields = "cn,description,loginTime,loginDisabled,createTimeStamp,passwordExpirationTime,givenName,sn"
NWIDirQuery1.SearchScope = qrySearchSubtree
NWIDirQuery1.SearchMode = qrySearchSynchronous
NWIDirQuery1.MaximumResults = 10000
Cheers again
Gareth