create (
url,
authMode,
filenames=None,
objectclass=replicaCatalogc.COLLECTION_OBJECTCLASS,
attr=None,
bindDN=None,
passwd=None,
)
Create a new collection.
Creates a new collection based on the given url, connection attributes and objectclass.
Also associates the given filenames with the collection.
The collection must not already exist.
Arguments
url The ldap url of the collection to create.
authMode The authentication mode to use when creating the
collection. If the mode is secure, bindDN and passwd should be None.
filenames A list of filenames to add to the collection. If None,
a empty collection is created.
objectclass objectclass name of the collection to be created, must
be a subclass of COLLECTION_OBJECTCLASS, if None is given then the default
COLLECTION_OBJECTCLASS is used.
attr A CollectionAttr object containing the attributes for the collection.
bindDN String name to use when authenticating to the ldap server.
passwd String password to authenticate with.
Raises:
A CollectionException is thrown if unable to activate the module, or
create the connection.
|