How do you perform an Ldapsearch on a secure port?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
My company had an example of a script that performs a search against a secure port.
ldapsearch -h $host -p $port -P /$var/$var/alias/slapd-cert8.db -Z -s base -b "" "objectclass apemdsuffix | grep netscapemdsuffix`;
I'm trying to do a simple search of an ldap database, finding anything with an objectclass of top. I know the root of the database, as well as the port/host etc. But after looking around, can't find much to actually make a search work.
I've tried varitions of the following command(all $ signs are variable name instead of real name), but still either get a bind error, or some other error. Any idea on what else is needed to make this statement work properly, or am I actually doing the search wrong?
ldapsearch -h ldaps://$serverName:$securePort# -p $unsecurePort -P /$var/$var/alias/slapd-cert8.db -Z -D cn=$bindingmanager -j /password/file -D o=com objectclass=top
linux ldap
add a comment |Â
up vote
0
down vote
favorite
My company had an example of a script that performs a search against a secure port.
ldapsearch -h $host -p $port -P /$var/$var/alias/slapd-cert8.db -Z -s base -b "" "objectclass apemdsuffix | grep netscapemdsuffix`;
I'm trying to do a simple search of an ldap database, finding anything with an objectclass of top. I know the root of the database, as well as the port/host etc. But after looking around, can't find much to actually make a search work.
I've tried varitions of the following command(all $ signs are variable name instead of real name), but still either get a bind error, or some other error. Any idea on what else is needed to make this statement work properly, or am I actually doing the search wrong?
ldapsearch -h ldaps://$serverName:$securePort# -p $unsecurePort -P /$var/$var/alias/slapd-cert8.db -Z -D cn=$bindingmanager -j /password/file -D o=com objectclass=top
linux ldap
Can you edit and check the formatting? I think at least some of those backslashes shouldn't be there. Four-space indent for a code block, see the small ? sign at the corner of the edit toolbar
â ilkkachu
Dec 5 '17 at 22:18
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
My company had an example of a script that performs a search against a secure port.
ldapsearch -h $host -p $port -P /$var/$var/alias/slapd-cert8.db -Z -s base -b "" "objectclass apemdsuffix | grep netscapemdsuffix`;
I'm trying to do a simple search of an ldap database, finding anything with an objectclass of top. I know the root of the database, as well as the port/host etc. But after looking around, can't find much to actually make a search work.
I've tried varitions of the following command(all $ signs are variable name instead of real name), but still either get a bind error, or some other error. Any idea on what else is needed to make this statement work properly, or am I actually doing the search wrong?
ldapsearch -h ldaps://$serverName:$securePort# -p $unsecurePort -P /$var/$var/alias/slapd-cert8.db -Z -D cn=$bindingmanager -j /password/file -D o=com objectclass=top
linux ldap
My company had an example of a script that performs a search against a secure port.
ldapsearch -h $host -p $port -P /$var/$var/alias/slapd-cert8.db -Z -s base -b "" "objectclass apemdsuffix | grep netscapemdsuffix`;
I'm trying to do a simple search of an ldap database, finding anything with an objectclass of top. I know the root of the database, as well as the port/host etc. But after looking around, can't find much to actually make a search work.
I've tried varitions of the following command(all $ signs are variable name instead of real name), but still either get a bind error, or some other error. Any idea on what else is needed to make this statement work properly, or am I actually doing the search wrong?
ldapsearch -h ldaps://$serverName:$securePort# -p $unsecurePort -P /$var/$var/alias/slapd-cert8.db -Z -D cn=$bindingmanager -j /password/file -D o=com objectclass=top
linux ldap
edited Dec 5 '17 at 22:22
asked Dec 5 '17 at 22:07
King of NES
1163
1163
Can you edit and check the formatting? I think at least some of those backslashes shouldn't be there. Four-space indent for a code block, see the small ? sign at the corner of the edit toolbar
â ilkkachu
Dec 5 '17 at 22:18
add a comment |Â
Can you edit and check the formatting? I think at least some of those backslashes shouldn't be there. Four-space indent for a code block, see the small ? sign at the corner of the edit toolbar
â ilkkachu
Dec 5 '17 at 22:18
Can you edit and check the formatting? I think at least some of those backslashes shouldn't be there. Four-space indent for a code block, see the small ? sign at the corner of the edit toolbar
â ilkkachu
Dec 5 '17 at 22:18
Can you edit and check the formatting? I think at least some of those backslashes shouldn't be there. Four-space indent for a code block, see the small ? sign at the corner of the edit toolbar
â ilkkachu
Dec 5 '17 at 22:18
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f409047%2fhow-do-you-perform-an-ldapsearch-on-a-secure-port%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Can you edit and check the formatting? I think at least some of those backslashes shouldn't be there. Four-space indent for a code block, see the small ? sign at the corner of the edit toolbar
â ilkkachu
Dec 5 '17 at 22:18