SSE4E

Home

GPError
GPSystem
ByteString
ByteBuffer
TLV
TLVList
Card
Atr
Key
Crypto
Application GPApplication GPSecDomain

ASN1
CardFile
IsoSecureChannel
ApplFactory
GPXML
JsScript
CardSim

X509
CRL
KeyStore
CMSSignedData
CMSGenerator
XMLSignature
OCSPQuery
LDAP
SOAP
URLConnection

PKCS11Provider
PKCS11Session
PKCS11Object

OutlineNode

OpenSCDP

LDAP - Reference Documentation

Class implementing support for the Lightweight Directory Access Protocol (LDAP)

Index of Methods

Constructor

Prototype

LDAP(String url)

Description

Bind to LDAP server at given url.

Arguments

TypeNameDescription
StringurlURL of LDAP server to bind against.

Exceptions

NameValueDescription
GPErrorGPError.ARGUMENTS_MISSINGToo few arguments in call
GPErrorGPError.INVALID_ARGUMENTSToo many arguments in call
GPErrorGPError.INVALID_TYPEArguments must be of type X509

Example


ldap = new LDAP("ldap://ldap.ecard.sozialversicherung.at/c=at");

get()

Prototype

Array get(String dn)

Description

Return a node in the LDAP directory.

Return

ArrayArray of attributes stored with the node.

Exceptions

NameValueDescription
GPErrorGPError.ARGUMENTS_MISSINGToo few arguments in call
GPErrorGPError.INVALID_ARGUMENTSToo many arguments in call
GPErrorGPError.INVALID_TYPEArguments must be of type X509
GPErrorGPError.DEVICE_ERRORAn error occured talking to the LDAP server

Example


node = ldap.get("o=Hauptverband der österreichischen Sozialversicherungsträger");

for (i in node) {
	print(i + " = " + node[i]);
}

Prototype

Array search(String start, String filter)

Description

Search for an entry in the LDAP directory using a starting point and a search filter.

The search filter must conform to RFC2254

Return

ArrayArray of entries in the LDAP directory. An entry itself is an array with the attributes as index.

Exceptions

NameValueDescription
GPErrorGPError.ARGUMENTS_MISSINGToo few arguments in call
GPErrorGPError.INVALID_ARGUMENTSToo many arguments in call
GPErrorGPError.INVALID_TYPEArguments must be of type X509
GPErrorGPError.DEVICE_ERRORAn error occured talking to the LDAP server

Example


list = ldap.search("ou=VPSig CA 2,o=Hauptverband der österreichischen Sozialversicherungsträger",
                   "(&(cn=VP750126:PNSER:11716977281833697432792823912539163133345)(SNgesperrt=TRUE))");

for (i = 0; i < list.length; i++) {
	print(list[i]._name);
	for (j in list[i]) {
		print(j + " = " + list[i][j]);
	}
}