< Back

Connect-LdapServer

Mon Jan 13, 2020 7:43 pm

NAME Connect-LdapServer



SYNOPSIS

Connect to an LDAP server.





SYNTAX

Connect-LdapServer [-Server <String>] [[-Credential] <Object>] [-SecureSocketLayer] [-TimeOut <String>]

[-Disconnect] [-DirectoryVersion <Int32>] [<CommonParameters>]





DESCRIPTION

Bind to an LDAP server on port 389 using Dot NET class System.DirectoryServices.Protocols

and save the connection to the global variable LdapConnection





PARAMETERS

-Server <String>

DNS name or IP address to connect to.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Credential <Object>

PSCredential object to bind to the LDAP server with.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SecureSocketLayer [<SwitchParameter>]

Forces LDAPS connection



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-TimeOut <String>

LDAP timeout in seconds.

Default value 10000 seconds (166 minutes)



Required? false

Position? named

Default value 10000

Accept pipeline input? false

Accept wildcard characters? false



-Disconnect [<SwitchParameter>]

Disposes the LDAP connection and removes the global variable.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-DirectoryVersion <Int32>

Connects to the LDAP server with a request version of LDAP.

Defaul value 3



Required? false

Position? named

Default value 3

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Author : Glen Buktenica

Version : 1.0.0.0 20160704 Initial Build



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Connect-LdapServer -Server 10.1.1.1 -Credential (Get-Credential)



LDAP bind to IP address 10.1.1.1 after prompting the operator for credentials









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Connect-LdapServer -Server 10.1.1.1:637 -Credential (Get-Credential)



LDAP bind to IP address 10.1.1.1 and on port 637 after prompting the operator for credentials









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Connect-LdapServer -Disconnect



Disposes the LDAP connection and removes the global variable.











RELATED LINKS





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=Get-LdapUser; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only

partial help.

-- To download and install Help files for the module that includes this cmdlet, use

Update-Help.

alertSet :

description :

examples :

Synopsis :

Get-LdapUser [-Name] <string[]> [-SearchScope] <string> [-Server] <string> -Credential

<Object> [-SecureSocketLayer] [-TimeOut <string>] [-PassThru] [<CommonParameters>]



ModuleName : FreeLDAP

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : Get-LdapUser

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=Move-LdapUser; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only

partial help.

-- To download and install Help files for the module that includes this cmdlet, use

Update-Help.

alertSet :

description :

examples :

Synopsis :

Move-LdapUser [-DistinguishedName] <string[]> [-Destination] <string> -Server <string>

-Credential <Object> [-SecureSocketLayer] [-TimeOut <string>] [-PassThru]

[<CommonParameters>]



ModuleName : FreeLDAP

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : Move-LdapUser

Category : Function

Component :

Role :

Functionality :





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=Set-LdapUser; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only

partial help.

-- To download and install Help files for the module that includes this cmdlet, use

Update-Help.

alertSet :

description :

examples :

Synopsis :

Set-LdapUser [-DistinguishedName] <string> -Server <string> -Credential <Object>

[-SecureSocketLayer] [-TimeOut <string>] [-Fullname <string>] [-GivenName <string>] [-sn

<string>] [-initials <string>] [-logindisabled <string>] [-telephonenumber <string>]

[-workforceid <string>] [-managerworkforceid <string>] [-sapposition <string>] [-cn

<string>] [-saproles <string>] [-ismanager <string>] [-preferredname <string>]

[-sapdateofbirth <string>] [-mail <string>] [-disabledflag <string>] [-title <string>]

[-userPassword <string>] [<CommonParameters>]



ModuleName : FreeLDAP

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : Set-LdapUser

Category : Function

Component :

Role :

Functionality :