I added -D "racfid=IBMUSER,profiletype=user,sysplex=sysplex1"
And it created output in STDOUT -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Donald J. Sent: Wednesday, 06 August, 2014 4:37 PM To: [email protected] Subject: Re: running ldapsearch via JVL Try typing the ldapsearch directly from an omvs command line. I usually use openldap on my pc for commands. An OMVS segment for your userid is probably a requirement. -- Donald J. [email protected] On Wed, Aug 6, 2014, at 12:08 PM, Tim Brown wrote: > Thanks, I ran this, it got rc=0 but there is no output? > > //LDAPSPRCH JOB 0,CLASS=A,PRTY=6,MSGLEVEL=(1,1),MSGCLASS=X, > //STEP01 EXEC PGM=BPXBATCH > //SYSOUT DD SYSOUT=*,LRECL=1024,RECFM=V > //STDOUT DD SYSOUT=*,LRECL=1024,RECFM=V > //STDERR DD SYSOUT=*,LRECL=1024,RECFM=V > //STDPARM DD * > sh /bin/ldapsearch -h 127.0.0.1 -p 389 > -w ******** > -b "racfid=IBMUSER,profiletype=user,sysplex=sysplex1" > "(objectclass=*)" ; > > Tim > > -----Original Message----- > From: IBM Mainframe Discussion List > [https://urldefense.proofpoint.com/v1/url?u=http://mailto:IBM-MAIN%40LISTSERV.UA.EDU&k=pCpgOv%2FKLW5dYRss05kLEw%3D%3D%0A&r=tQq0J85k4w4CeO1cI0sWanGhPyb3Fq7EC6ctgNHLxNs%3D%0A&m=y6KJ%2BKauchxNjxkNfPrqvM%2FgEogr39pYTGab%2BLXm7qo%3D%0A&s=b82f11abe070a8ede9cd3d11ae5a17e20690a085e3c3c3c1cbb14b051ab456a4] > On Behalf Of Donald J. > Sent: Wednesday, 06 August, 2014 10:53 AM > To: [email protected] > Subject: Re: running ldapsearch via JVL > > > Try this: > > //STEPNAME EXEC PGM=BPXBATCH > > //STDOUT DD SYSOUT=*,LRECL=1024,RECFM=V > > //STDERR DD SYSOUT=*,LRECL=1024,RECFM=V > > //STDPARM DD * > > sh /bin/ldapsearch -h mvs6 -p 3289 -D cn=yyy -w zzz > > -b "O=COMODO CA Limited,L=Salford,ST=Greater Manchester,C=GB" > > "(objectclass=*)" ; > > // > > > > -- > > Donald J. > > [email protected] > > > > On Wed, Aug 6, 2014, at 05:17 AM, Tim Brown wrote: > > > Does anyone have an example of running ldapsearch via jcl > > > > > -- > https://urldefense.proofpoint.com/v1/url?u=http://www.fastmail.fm/&k=p > CpgOv%2FKLW5dYRss05kLEw%3D%3D%0A&r=tQq0J85k4w4CeO1cI0sWanGhPyb3Fq7EC6c > tgNHLxNs%3D%0A&m=N7Uq9CvF5SLWQVcSv7Mq1c4Y7D1XllqSO0lJ%2BICkNyo%3D%0A&s > =d012baa45490c7257ac54e5e766f3c24f3c2bb220c96eab130f5007042c5bd40 > - The professional email service > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, send > email to [email protected] with the message: INFO IBM-MAIN > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, send > email to [email protected] with the message: INFO IBM-MAIN -- https://urldefense.proofpoint.com/v1/url?u=http://www.fastmail.fm/&k=pCpgOv%2FKLW5dYRss05kLEw%3D%3D%0A&r=tQq0J85k4w4CeO1cI0sWanGhPyb3Fq7EC6ctgNHLxNs%3D%0A&m=y6KJ%2BKauchxNjxkNfPrqvM%2FgEogr39pYTGab%2BLXm7qo%3D%0A&s=b252e0d7999a42cf2b9e56afdcf87c05458a38d4a144d4120cb61a535e9dd77b - Access all of your messages and folders wherever you are ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
