-n            show what would be done but don't actually search     

-n is not newpwd 

 ldapsearch -h mvs7 -D racfid=jojo123,profiletype=user,cn=MVS7SUFF  
   -w  oldpwd/newwd -s base  -b "" objectclass=*

This command should work from any platform.  
The ldapchangpwd is probably mainframe only.

-- 
  Donald J.
  dona...@4email.net

On Wed, Oct 22, 2014, at 04:23 AM, Tim Brown wrote:
> This gets a 0 but the password is still the old one
> 
> sh  /bin/ldapsearch -h 127.0.0.1 -p 389 -s base        
>   -w oldpwd
>   -n oldpwd                                         
>   -D "racfid=TESTUSER,profiletype=user,sysplex=sysplex1" 
>  "(objectclass=*)" ;                                   
> 
> Tim
> 
> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On 
> Behalf Of Donald J.
> Sent: Tuesday, 21 October, 2014 4:38 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: ldapchangepwd
> 
> That would be your SUFFIX parameter value.
> 
> --
>   Donald J.
>   dona...@4email.net
> 
> On Tue, Oct 21, 2014, at 01:30 PM, Tim Brown wrote:
> > Thanks , where is RACFSY7 referred to in DSCONFIG?
> > 
> > -----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=ZeARdsZMMXsaihBVF4w4otzQdqnzQnWZOfvpQ%2FfX%2FFY%3D%0A&s=05dc0b981d58253ccd44b3282c2354b893a58a1d3407a8fb674904a90e2a9cb2]
> >  On Behalf Of Donald J.
> > Sent: Tuesday, 21 October, 2014 4:12 PM
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > Subject: Re: ldapchangepwd
> > 
> > This works for me:
> > 
> > ldapsearch -h mvs7 -D racfid=jojo123,profiletype=user,cn=RACFSY7  -w 
> > oldpwd/ oldpwd -s base  -b "" objectclass=*
> > 
> > --
> >   Donald J.
> >   dona...@4email.net
> > 
> > On Tue, Oct 21, 2014, at 07:58 AM, Tim Brown wrote:
> > > Attempting to use ldapchangepwd.  Any idea what is causing error?
> > > 
> > > ldapchangepwd -D "cn=TESTUSER,o=IBM,c=US" -w ? -n ?  -h 127.0.0.1  
> > > -p
> > > 389
> > > 
> > > Enter current password ==>          old
> > > Enter new password ==>       new
> > > 
> > > ldap_sasl_bind: Credentials are not valid
> > > ldap_sasl_bind: additional info: R004062 Credentials are not valid
> > > (ldbm_authenticate_user:252)
> > > 
> > > Thanks,
> > > 
> > > Tim Brown
> > > 
> > > 
> > > 
> > > 
> > > --------------------------------------------------------------------
> > > -- For IBM-MAIN subscribe / signoff / archive access instructions, 
> > > send email to lists...@listserv.ua.edu with the message: INFO 
> > > IBM-MAIN
> > 
> > --
> > https://urldefense.proofpoint.com/v1/url?u=http://www.fastmail.fm/&k=p
> > CpgOv%2FKLW5dYRss05kLEw%3D%3D%0A&r=tQq0J85k4w4CeO1cI0sWanGhPyb3Fq7EC6c
> > tgNHLxNs%3D%0A&m=ZLd7j94zTyQxa%2FVaBKKyHfxrRdjH%2FDYQ0OKhKqpVTKM%3D%0A
> > &s=c46847a5cd0a26892078bc3d6e22a0bf2d595a9220741a4c514743596b3c7c0f - 
> > Send your email first class
> > 
> > ----------------------------------------------------------------------
> > For IBM-MAIN subscribe / signoff / archive access instructions, send 
> > email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
> > 
> > ----------------------------------------------------------------------
> > For IBM-MAIN subscribe / signoff / archive access instructions, send 
> > email to lists...@listserv.ua.edu 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=ZeARdsZMMXsaihBVF4w4otzQdqnzQnWZOfvpQ%2FfX%2FFY%3D%0A&s=55c4f8f8f3de4baea66c410bd628464608789b1d23bb7c45612bc8cf586295ad
>  - Faster than the air-speed velocity of an
>                           unladen european swallow
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
> lists...@listserv.ua.edu with the message: INFO IBM-MAIN
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

-- 
http://www.fastmail.fm - Email service worth paying for. Try it for free

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to