Active Directory/Connect: Difference between revisions

Content added Content deleted
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
Line 2: Line 2:


The task is to establish a connection to an Active Directory or Lightweight Directory Access Protocol server.
The task is to establish a connection to an Active Directory or Lightweight Directory Access Protocol server.

=={{header|AutoIt}}==
{{works with|AutoIt}}
<lang AutoIt> #include <AD.au3>
_AD_Open()</lang>


=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==
Line 15: Line 10:
objConn.Provider := "ADsDSOObject"
objConn.Provider := "ADsDSOObject"
objConn.Open()</lang>
objConn.Open()</lang>

=={{header|AutoIt}}==
{{works with|AutoIt}}
<lang AutoIt> #include <AD.au3>
_AD_Open()</lang>

=={{header|C}}==
=={{header|C}}==
With OpenLDAP:
With OpenLDAP:
Line 31: Line 32:
var objDE = new System.DirectoryServices.DirectoryEntry("LDAP://DC=onecity,DC=corp,DC=fabrikam,DC=com");
var objDE = new System.DirectoryServices.DirectoryEntry("LDAP://DC=onecity,DC=corp,DC=fabrikam,DC=com");
</lang>
</lang>



=={{header|ColdFusion}}==
=={{header|ColdFusion}}==
Line 46: Line 46:
>
>
</lang>
</lang>



=={{header|D}}==
=={{header|D}}==
Line 299: Line 298:
my $mesg = $ldap->bind( $bind_dn, password => $bind_pass );
my $mesg = $ldap->bind( $bind_dn, password => $bind_pass );
</lang>
</lang>

=={{header|Perl 6}}==
Using module LMDB - bindings to the openLDAP library. Requires an LDAP instance.

<lang perl6>use LMDB;

my %DB := LMDB::DB.open(:path<some-dir>, %connection-parameters);
</lang>

%DB may be accessed, read from and written to like a native hash.


=={{header|PHP}}==
=={{header|PHP}}==
Line 366: Line 355:


(ldap_unbind ld)</lang>
(ldap_unbind ld)</lang>

=={{header|Raku}}==
(formerly Perl 6)
Using module LMDB - bindings to the openLDAP library. Requires an LDAP instance.

<lang perl6>use LMDB;

my %DB := LMDB::DB.open(:path<some-dir>, %connection-parameters);
</lang>

%DB may be accessed, read from and written to like a native hash.


=={{header|Ruby}}==
=={{header|Ruby}}==
Line 408: Line 408:
}
}
}</lang>
}</lang>

=={{header|smart BASIC}}==
=={{header|smart BASIC}}==
{{incorrect|smart BASIC|Active Directory has nothing to do with the local file system}}
{{incorrect|smart BASIC|Active Directory has nothing to do with the local file system}}