10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm trying to make a bash script to read LDAP (from MS active directory with ldapsearch), extract the fields 'mail', 'division', 'memberOf', 'userAccountControl', 'uidNumber', 'name', 'sAMAccountName' and save in a mysql database.
I have extracted the fields with ldapsearch but I am... (2 Replies)
Discussion started by: somachibun
2 Replies
2. UNIX for Beginners Questions & Answers
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 Users,ou=Accounts,dc=abc,dc=somecompany,dc=com" -s sub '(distinguishedName=CN=Bob\\, Billy J,OU=End... (8 Replies)
Discussion started by: who10
8 Replies
3. Solaris
All,
New to this forum and unix here so please forgive any silly questions. I am on a Solaris 10 machine and need a script to query our Windows Domain controller to determine if a user is active or not. Man files were helpful enough and it worked.
The Challenge is the program doesn't exit... (1 Reply)
Discussion started by: daniel333
1 Replies
4. Red Hat
Hi
I'm not familiar with ldap and I hope someone to help me.
I need to get some attribute value from ldap DB.
When i run the following command is OK:
ldapsearch -h localhost -p 16611 -x -D cn=user -w passwd -b msisdn=359502479649,dc=MSISDN,DC=C-NTDB "(objectClass=SUBINNSS)" refinmocNAME
the... (0 Replies)
Discussion started by: vasil
0 Replies
5. Shell Programming and Scripting
Hi
$ cat ad.sh
ldapsearorg -x -LLL -h sb1131z.testbadbigcorp.org -D "CN=ADMINZZ,OU=AdminRoles,DC=testbadbigcorp,DC=org" -w "UT3w4f57lll--4...4" -b "OU=Test,DC=testbadbigcorp,DC=org" "(&(&(&(&(objectCategory=person)(objectClass=user)(lockoutTime:1.2.840.113556.1.4.804:=4294967295)))))" dn$... (3 Replies)
Discussion started by: slashdotweenie
3 Replies
6. UNIX for Advanced & Expert Users
Hi
I do a very simple monitoring of our OpenLDAP (runs in cronjob and generate alerts if unsuccessfull)
$ ldapsearch -h hostname.domain -D "cn=monitor_user,ou=People,dc=organisation" -w "password" -b "dc=organisation" -x "(&(cn=monitor_user)(ou=People))" dn | grep -v version
dn:... (4 Replies)
Discussion started by: slashdotweenie
4 Replies
7. UNIX for Dummies Questions & Answers
Never knew of this command ldapsearch, but I would like to use it to lookup a single user and return where their office is.
Is this possible?
I'm totally starting from scratch. I already saw some of the gurus say read the man page, which is pretty greek when you don't know the details of... (1 Reply)
Discussion started by: srhadden
1 Replies
8. Red Hat
Hi there everyone. I'm trying to make a bash script that accepts some arguments ans give's back some info about LDAP users and servers.
I have this function :
has_group_access(){
result=$(ldapsearch -LLL "cn=${GROUP_NAME}" cn member | cut -d"," -f1 | cut -d":" -f2 | cut -d"=" -f2 | grep... (1 Reply)
Discussion started by: theboogymaster
1 Replies
9. Programming
Hi all,
I've been searching for ldapsearch function these few days. Still I couldn't found the solution.
I would like to translate this query
ldapsearch -x -LLL -h new_IP -p new_Port -D "cn=jw" -w "dummy" -b
"id=2311,o=WC,c=jp" -s sub
to ldap_search_ext_s() function in C program.
... (0 Replies)
Discussion started by: tailangong
0 Replies
10. UNIX for Advanced & Expert Users
Hello all
I would like to know if it's possible to extract users from Active Directory and parse the output to obtain a XML file with specific format.
So the AD is a windows machine, and I would like to extract from a red hat linux serveur. I try ldapsearch command and ok I'm abble to extract... (5 Replies)
Discussion started by: ldiaz2106
5 Replies
WICD-WIRED-SETTINGS.CONF(5) File Formats Manual WICD-WIRED-SETTINGS.CONF(5)
NAME
wicd-wired-settings.conf - controls Wicd's wired network settings
DESCRIPTION
This file contains configuration information for wired interfaces in Wicd.
This file is located at /etc/wicd/wired-settings.conf
SETTINGS
default = <0|1>
This option decides whether to use this profile as the default. 0 = do not use this profile as default.
1 = use this profile as default.
beforescript = <None|arbitrary_script>
This defines a script to run before Wicd brings up the connection. The script should be a Bourne-compatible script and should be
executable.
IMPORTANT - scripts should ONLY be writable by root and located in a directory that is only writable by root.
afterscript = <None|arbitrary_script>
This defines a script to run after Wicd brings up the connection. The script should be a Bourne-compatible script and should be
executable.
IMPORTANT - scripts should ONLY be writable by root and located in a directory that is only writable by root.
predisconnectscript = <None|arbitrary_script>
This defines a script to run before Wicd disconnects the interface. The script should be a Bourne-compatible script and should be
executable.
postdisconnectscript = <None|arbitrary_script>
This defines a script to run after Wicd disconnects the interface. The script should be a Bourne-compatible script and should be
executable.
IMPORTANT - scripts should ONLY be writable by root and located in a directory that is only writable by root.
ip = <None|ip_address>
Use this option if you have a static ip address for your system.
netmask = <None|networkmask>
This setting is only appropriate if a static ip address is configured above.
broadcast = <None|broadcast_address>
This setting is only appropriate if a static ip address is configured above.
gateway = <None|gateway_address>
This setting is only appropriate if a static ip address is configured above.
use_static_dns = <True|False>
True = use static DNS servers instead of accepting what the dhcp server supplies.
use_global_dns = <True|False>
True = use the global DNS servers provided in wicd-manager-settings.conf(5). This option is only appropriate if "use_static_dns =
True"
dns1 = <None|ip_address>
Static DNS address if "use_static_dns = True" and "use_global_dns = False"
dns2 = <None|ip_address>
Static DNS address if "use_static_dns = True" and "use_global_dns = False"
dns3 = <None|ip_address>
Static DNS address if "use_static_dns = True" and "use_global_dns = False"
SEE ALSO
wicd(8), wicd-curses(8), wicd-manager-settings.conf(5), wicd-wireless-settings.conf(5).
wicd-1.7.2.4 WICD-WIRED-SETTINGS.CONF(5)