Search Results

Search: Posts Made By: who10
5,682
Posted By who10
Well, all that work only to find that I was in...
Well, all that work only to find that I was in fact using an MS file. I edited the file with VI, but it was created as a MS .txt file.

I ran the code within the loop and saw the \r \n:eek:.
...
5,682
Posted By who10
I created both .txt files using VI and yes, the...
I created both .txt files using VI and yes, the search works perfectly fine if I enter the adgroup manually.

I created a new script in an attempt to isolate the problem area and have discovered...
5,682
Posted By who10
The GroupsTest1.txt file has one line. It is a...
The GroupsTest1.txt file has one line. It is a group that I am wanting to get information from LDAP on. At some point, I'll add more groups to this file. It looks something like this.

ab_abc The...
5,682
Posted By who10
Ldapsearch using variable will not work
When I execute the code below with cn set to the $adgroup variable, I get the following error:
Invalid DN syntax (34)
Additional information: 0000208F: NameErr: DSID-031001F7, problem 2006...
5,464
Posted By who10
Duh! I need to remember to use the manpages....
Duh! I need to remember to use the manpages. ldif-wrap took care of the problem per the ldapsearch below.

ldapsearch -x -LLL -E pr=200/noprompt -o ldif-wrap=no -h abc-loc.somecompany.com -D...
5,464
Posted By who10
Results of ldapsearch piped to grep are cut off
ldapsearch -x -LLL -E pr=200/noprompt -h abc-loc.somecompany.com -D "account@somecompany.com" -w password -b "cn=groupname,ou=Resource,ou=groups,dc=abc,dc=somecompany,dc=com" | grep member

Results...
15,872
Posted By who10
Thanks guys. This will give me good example to...
Thanks guys. This will give me good example to learn from.
15,872
Posted By who10
This is perfect! Thank you.
This is perfect! Thank you.
15,872
Posted By who10
Thanks RudiC. That worked. Now, to break it all...
Thanks RudiC. That worked. Now, to break it all down to get a good understanding of how awk works. I really do appreciate your help.

Thanks again.
15,872
Posted By who10
Thanks RudiC! I'll do some research on sed and...
Thanks RudiC! I'll do some research on sed and awk.
15,872
Posted By who10
Help with output from ldapsearch command
Using ldapsearch, I've built the following command to get what I need.

ldapsearch -x -LLL -E pr=200/noprompt -h abc-loc.somecompany.com -D "account@somecompany.com" -w password -b "ou=End...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 07:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy