usage: fcpc ldap [-h] [--ldap.url LDAP.URL] [--ldap.crt LDAP.CRT]
[--ldap.anonymous LDAP.ANONYMOUS]
[--ldap.auth.userdn LDAP.AUTH.USERDN]
[--ldap.auth.password LDAP.AUTH.PASSWORD]
[--ldap.page.size LDAP.PAGE.SIZE]
[--ldap.object.identifier LDAP.OBJECT.IDENTIFIER]
[--ldap.filter.host LDAP.FILTER.HOST] [--ldap.base LDAP.BASE]
[--ldap.filter.excludedn LDAP.FILTER.EXCLUDEDN]
[--ldap.filter.person LDAP.FILTER.PERSON]
[--ldap.filter.group LDAP.FILTER.GROUP]
[--ldap.filter.memberof LDAP.FILTER.MEMBEROF]
[--ldap.index.groups {0,1}] [--ldap.index.empty_groups {0,1}]
[--ldap.index.persons {0,1}] [--ldap.index.hosts {0,1}]
[--ldap.type {ad,generic}]
[--ldap.query.sleep LDAP.QUERY.SLEEP]
[--ldap.continue_on_error {0,1}]
[--ldap.retry.count LDAP.RETRY.COUNT]
[--ldap.retry.sleep LDAP.RETRY.SLEEP]
{query,show,import-persons,import-groups,import-hosts,download-and-import-all}
[ldapobjects ...]
positional arguments:
{query,show,import-persons,import-groups,import-hosts,download-and-import-all}
Choices:
query
show
import-persons
import-groups
import-hosts
download-and-import-all
ldapobjects
optional arguments:
-h, --help show this help message and exit
--ldap.url LDAP.URL LDAP server URI[Defined:fcplib.module.ldap.cmd]
(default: None)
--ldap.crt LDAP.CRT LDAP certificate file[Defined:fcplib.module.ldap.cmd]
(default: None)
--ldap.anonymous LDAP.ANONYMOUS
LDAP anonymouns (no
bind)[Defined:fcplib.module.ldap.cmd] (default: 0)
--ldap.auth.userdn LDAP.AUTH.USERDN
LDAP user[Defined:fcplib.module.ldap.cmd] (default:
None)
--ldap.auth.password LDAP.AUTH.PASSWORD
LDAP password[Defined:fcplib.module.ldap.cmd]
(default: None)
--ldap.page.size LDAP.PAGE.SIZE
LDAP page size[Defined:fcplib.module.ldap.cmd]
(default: 300)
--ldap.object.identifier LDAP.OBJECT.IDENTIFIER
LDAP object identifier
attribute[Defined:fcplib.module.ldap.cmd] (default:
cn)
--ldap.filter.host LDAP.FILTER.HOST
LDAP filter for
devices[Defined:fcplib.module.ldap.cmd] (default:
(objectclass=computer))
--ldap.base LDAP.BASE
LDAP base for queries[Defined:fcplib.module.ldap.cmd]
(default: None)
--ldap.filter.excludedn LDAP.FILTER.EXCLUDEDN
LDAP DNs to exclude[Defined:fcplib.module.ldap.cmd]
(default: [])
--ldap.filter.person LDAP.FILTER.PERSON
LDAP filter for
persons[Defined:fcplib.module.ldap.cmd] (default:
(&(objectclass=person)(!(objectclass=computer))))
--ldap.filter.group LDAP.FILTER.GROUP
LDAP filter for groups[Defined:fcplib.module.ldap.cmd]
(default: (objectclass=group))
--ldap.filter.memberof LDAP.FILTER.MEMBEROF
LDAP filter for groups[Defined:fcplib.module.ldap.cmd]
(default: (memberOf={dn}))
--ldap.index.groups {0,1}
LDAP index groups[Defined:fcplib.module.ldap.cmd]
(default: 1)
Choices:
0
1
--ldap.index.empty_groups {0,1}
LDAP index even empty
groups[Defined:fcplib.module.ldap.cmd] (default: 0)
Choices:
0
1
--ldap.index.persons {0,1}
LDAP index persons[Defined:fcplib.module.ldap.cmd]
(default: 1)
Choices:
0
1
--ldap.index.hosts {0,1}
LDAP index hosts[Defined:fcplib.module.ldap.cmd]
(default: 1)
Choices:
0
1
--ldap.type {ad,generic}
LDAP type[Defined:fcplib.module.ldap.cmd] (default:
ad)
Choices:
ad
generic
--ldap.query.sleep LDAP.QUERY.SLEEP
Wait seconds after each
query[Defined:fcplib.module.ldap.cmd] (default: 0)
--ldap.continue_on_error {0,1}
Continue to import on
errors[Defined:fcplib.module.ldap.cmd] (default: 0)
Choices:
0
1
--ldap.retry.count LDAP.RETRY.COUNT
How many time to try to retry on LDAP
error[Defined:fcplib.module.ldap.cmd] (default: 0)
--ldap.retry.sleep LDAP.RETRY.SLEEP
How many seconds to sleep after LDAP
error[Defined:fcplib.module.ldap.cmd] (default: 600)
LDAP subcommands
#Search by LDAP query, return attributes as seen in LDAP
fcpc ldap query 'LDAPQuery'
#Search by LDAP query, return preprocessed attributes
fcpc ldap show 'LDAPQuery'
#Import persons from LDAP
fcpc ldap import-persons
#Import hosts from LDAP
fcpc ldap import-hosts