06-20-2013
Hello Just Ice,
Thanks Again. Actually the NT IDs differ from email to email. I mean all are not like Lastname and Firstnames first initial.Like for Naveen Kumar Dasu its like dasun.Its not same for all the email ids. So basically we have a LDAP Directory.So we need to connect to the LDAP directory and retrive the NT IDs for the 3 User Directories AMERICAS,ASIAPACIFIC and EMEA. I just want a script which connects to LDAP Directory and gets the NT IDs.
Help on this is highly appreciated.
Regards,
Naveen
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
shell script to send email with usage of space in the directory as description :
Please any one help me in writing a script to send email with usage of space in the directory as description . (3 Replies)
Discussion started by: sakthifire
3 Replies
2. Shell Programming and Scripting
Hi All,
My requirement is like this.
I want to generate records of 1 million lines. If I say lines it means one line will contain some string or numbers like
AA,3,4,45,+223424234,Tets,Ghdj,+33434,345453434,........................ upto length lets say 41. ( 41 comma sepearted aplha numneric... (2 Replies)
Discussion started by: Rahil2k9
2 Replies
3. HP-UX
Hi,
I am trying to send an email to multiple IDs from Unix script. I have given the EmailIds in a file and trying to use the file as input in the script.
> cat Email
EmailID = "abc@xyz.com cbz@xyz.com"
In my script I have
. /Email
mailx -s "subj" $EmailID
This fails with the... (3 Replies)
Discussion started by: sangharsh
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Is there an shell script/batch file to genarate random passwords which expires after a stipulated time period? Please suggest a software which does this for AIX and windows both else.
Thanks. (5 Replies)
Discussion started by: dwiravi
5 Replies
5. Shell Programming and Scripting
Hi ,
I am new to shell scripting. i have a requirement say i will receive a file in a directory say /xyz.if that file stays in that directory more than 30 min i need to get a mail to my outlook.this should run for every 20 min in crontab.
can anyone help me? (8 Replies)
Discussion started by: muraliinfy04
8 Replies
6. Shell Programming and Scripting
hi,
I want to send mail to DL...
i am sending email to single id using mailx .. how to send to group of ids? :confused:
i am using a file which conatins all the ids,
is there any other way to send mail without creating the DLfile?
DL=path\file.txt
mailx -s "Info BG is now... (4 Replies)
Discussion started by: sreelu
4 Replies
7. Shell Programming and Scripting
I have a script which generates recursively some files in folders for a given root folder.
I have checks for permissions and it works for all folders except one(i have 777 permission on it). When i try calling the script in problematic folder(problematic folder being root folder), script works as... (2 Replies)
Discussion started by: bb2
2 Replies
8. Shell Programming and Scripting
Hi,
I am writing a script as follows:
#!/bin/sh
set -x
for i in `cat a`; do
#sleep 3
print $i >> server.txt
sleep 5
if test -d `vtask $i "' ls -lrt /opt/log/ '" ` ;
then
print $i >> 12.5.txt
else
print $i >> 12.0.txt
fi
done (7 Replies)
Discussion started by: dbashyam
7 Replies
9. Emergency UNIX and Linux Support
I would like to extract only the email ids from the gecos of each user id. I have to get the email ids of all the users on the server like this.
Can someone please assist me with the command/script? (15 Replies)
Discussion started by: ggayathri
15 Replies
10. Shell Programming and Scripting
Hi All,
I have the below code(.sh) and need to send an email.
#!/bin/bash
cp /u02/xxc_incoming/TEST*.dat /u02/xxc_archive_incoming/AMER7764_ARPP_2/
cat /u02/xxc_incoming/TEST*.dat > /u02/xxc_incoming/XXC_TEST.dat
rm /u02/xxc_incoming/TEST*.dat
cd $XXC_TOP/bin
sqlldr userid=apps/<pwd> ... (12 Replies)
Discussion started by: Mist123
12 Replies
UD(1) General Commands Manual UD(1)
NAME
ud - interactive LDAP Directory Server query program
SYNOPSIS
ud [-Dv] [-s server] [-d debug-mask] [-l ldap-debug-mask] [-f file]
DESCRIPTION
ud is used to interogate a directory server via the Lightweight Directory Access Protocol (LDAP).
OPTIONS
-s server Used to specify the name of an LDAP server to which ud should connect. If this flag is omitted, the value specified in the ud
configuration file is used. If no value is specified in the configuration file, or the configuration file does not exist, the
name ldap is used. Of course, it is up to the system administrator to make sure that the name ldap can be resolved (presumably
through the use of a CNAME or A record in the DNS and the appropriate search path specified in the resolver config file).
-d debug-mask
Sets the ud debug mask to the value specified. Values for the mask can be dumped by using the -D flag.
-f file Sets the configuration file to the name specified.
-l ldap-debug-mask
Sets the LDAP debug mask to the value specified.
-v Turns on verbose output. Also toggable via the ud verbose command.
-D Prints out a list of valid ud debug masks.
FILES
/etc/openldap/ud.conf The ud configuration file.
SEE ALSO
ud.conf(5), ldap.conf(5), ldap(3)
DIAGNOSTICS
ud will try to be nice about error conditions, and in most cases prints a warm and fuzzy error message when it encounters a problem. Some-
times the error will be unexpected, and in these cases, ud uses the ldap_perror() routine to print an informative diagnostic.
BUGS
Too numerous to mention.
AUTHOR
Bryan Beecher, University of Michigan
ACKNOWLEDGEMENTS
OpenLDAP is developed and maintained by The OpenLDAP Project (http://www.openldap.org/). OpenLDAP is derived from University of Michigan
LDAP 3.3 Release.
4.3 Berkeley Distribution 20 August 2000 UD(1)