Browsing LDAP Users and Groups
The CipherTrust Manager allows you to browse the LDAP users and groups created in the LDAP connection manager. Before browsing, make sure that LDAP connection must be configured. Refer to LDAP for details.
Note
LDAP browsing is not applicable to the LDAP connection available through Access Management.
Browsing LDAP Users
To browse LDAP users, run:
Syntax
ksctl ldap-browse users --connection-id <connectionID/Name>
Example Request 1
ksctl ldap-browse users --connection-id 19f0228c-a928-4ba0-87d2-bcef829f77eb --limit 2
Example Response 1
{
"skip": 0,
"limit": 2,
"total": 7,
"users": [
{
"DN": "cn=Amy Wong+sn=Kroker,ou=people,dc=planetexpress,dc=com",
"attributes": [
{
"name": "cn",
"values": [
"Amy Wong"
]
},
{
"name": "uid",
"values": [
"amy"
]
}
]
},
{
"DN": "cn=Bender Bending Rodríguez,ou=people,dc=planetexpress,dc=com",
"attributes": [
{
"name": "cn",
"values": [
"Bender Bending Rodríguez"
]
},
{
"name": "uid",
"values": [
"bender"
]
}
]
}
]
}
Example Request 2
ksctl ldap-browse users --connection-id 5ca9eaae-f319-4d62-b448-21c1dd537cc2 --limit 1 --username fry
Example Response 2
{
"skip": 0,
"limit": 1,
"total": 1,
"users": [
{
"DN": "cn=Philip J. Fry,ou=people,dc=planetexpress,dc=com",
"attributes": [
{
"name": "cn",
"values": [
"Philip J. Fry"
]
},
{
"name": "uid",
"values": [
"fry"
]
}
]
}
]
}
Example Request 3
ksctl ldap-browse users --connection-id 5ca9eaae-f319-4d62-b448-21c1dd537cc2 --limit 1 --username bender --groupname *crew
Example Response 3
{
"skip": 0,
"limit": 10,
"total": 1,
"users": [
{
"DN": "cn=Bender Bending Rodríguez,ou=people,dc=planetexpress,dc=com",
"attributes": [
{
"name": "cn",
"values": [
"Bender Bending Rodríguez"
]
},
{
"name": "uid",
"values": [
"bender"
]
}
]
}
]
}
Browsing LDAP Groups
To browse LDAP groups, run:
Syntax
ksctl ldap-browse groups --connection-id <connectionID/Name>
Example Request 1
ksctl ldap-browse groups --connection-id 5ca9eaae-f319-4d62-b448-21c1dd537cc2 --limit 1
Example Response 1
{
"skip": 0,
"limit": 1,
"total": 2,
"groups": [
{
"DN": "cn=admin_staff,ou=people,dc=planetexpress,dc=com",
"attributes": [
{
"name": "cn",
"values": [
"admin_staff"
]
}
]
}
]
}
Example Request 2
ksctl ldap-browse groups --connection-id 5ca9eaae-f319-4d62-b448-21c1dd537cc2 --limit 1 --group_id_attribute cn --groupname admin*
Example Response 2
{
"skip": 0,
"limit": 1,
"total": 1,
"groups": [
{
"DN": "cn=admin_staff,ou=people,dc=planetexpress,dc=com",
"attributes": [
{
"name": "cn",
"values": [
"admin_staff"
]
}
]
}
]
}
Example Request 3
ksctl ldap-browse groups --connection-id 5ca9eaae-f319-4d62-b448-21c1dd537cc2 --limit 1 --group_id_attribute cn --user_id fry
Example Response 3
{
"skip": 0,
"limit": 1,
"total": 2,
"groups": [
{
"DN": "cn=admin_staff,ou=people,dc=planetexpress,dc=com",
"attributes": [
{
"name": "cn",
"values": [
"admin_staff"
]
}
]
}
]
}