Help Needed regarding Ldapsearch script


 
Thread Tools Search this Thread
Special Forums IP Networking Help Needed regarding Ldapsearch script
# 1  
Old 10-10-2008
Help Needed regarding Ldapsearch script

Hi guys,

I very appreciate for answering to my previous query.

I have encountered another problem.I have a perl script to display required networking information like DNS,gateway,etc. to be changed in a remote computer which is to be added to a computing cluster.

I need a script which takes the results of the ldapsearch and changes it automatically in th remote computer instead of displaying it.

Any direction or help will be greatfully appreciated.

Pranav
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Parser ldapsearch to mysql

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

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 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

Ldapsearch command not exiting

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

Ldapsearch problem

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

useless line feeds in ldapsearch output. Howto remove with shell script?

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

ldapsearch in monitoring script without bind password written in script

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

Need assistance on using ldapsearch

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

ldapsearch bash script help

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

LDAPSEARCH in C

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

ldapsearch and XML

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
Login or Register to Ask a Question
tapset::networking(3stap)												 tapset::networking(3stap)

NAME
tapset::networking - systemtap networking tapset DESCRIPTION
This family of probe points is used to probe the activities of the network device. netdev.receive Data received from network device. See probe::netdev.receive(3stap) for details. netdev.transmit Network device transmitting buffer See probe::netdev.transmit(3stap) for details. netdev.change_mtu Called when the netdev MTU is changed See probe::netdev.change_mtu(3stap) for details. netdev.open Called when the device is opened See probe::netdev.open(3stap) for details. netdev.close Called when the device is closed See probe::netdev.close(3stap) for details. netdev.hard_transmit Called when the devices is going to TX (hard) See probe::netdev.hard_transmit(3stap) for details. netdev.rx Called when the device is going to receive a packet See probe::netdev.rx(3stap) for details. netdev.change_rx_flag Called when the device RX flag will be changed See probe::netdev.change_rx_flag(3stap) for details. netdev.set_promiscuity Called when the device enters/leaves promiscuity See probe::netdev.set_promiscuity(3stap) for details. netdev.ioctl Called when the device suffers an IOCTL See probe::netdev.ioctl(3stap) for details. netdev.register Called when the device is registered See probe::netdev.register(3stap) for details. netdev.unregister Called when the device is being unregistered See probe::netdev.unregister(3stap) for details. netdev.get_stats Called when someone asks the device statistics See probe::netdev.get_stats(3stap) for details. netdev.change_mac Called when the netdev_name has the MAC changed See probe::netdev.change_mac(3stap) for details. SEE ALSO
probe::netdev.receive(3stap), probe::netdev.transmit(3stap), probe::netdev.change_mtu(3stap), probe::netdev.open(3stap), probe::netdev.close(3stap), probe::netdev.hard_transmit(3stap), probe::netdev.rx(3stap), probe::netdev.change_rx_flag(3stap), probe::netdev.set_promiscuity(3stap), probe::netdev.ioctl(3stap), probe::netdev.register(3stap), probe::netdev.unregister(3stap), probe::netdev.get_stats(3stap), probe::netdev.change_mac(3stap), stap(1), stapprobes(3stap) IBM
--- tapset::networking(3stap)