Hi, Running the command:-
ldappasswd -H ldap://server_domain_or_IP -x -D "user's_dn" -w old_passwd -a > old_passwd -s new_passwd In shell of openldap server will change the password of "user dn". Hope this helps! BR, Anirudh Malhotra Mail: [email protected] Facebook: www.facebook.com/8zero2 Twitter: @8zero2_in Blog: blog.8zero2.in On Fri, Nov 4, 2016 at 9:57 AM, Arun Gupta <[email protected]> wrote: > Hi, > > Thanks Anirudh.. for response, as I am newbie in openldap, please let me > know any already avaliabe script or some tutorial for the same. > > Regards, > Arun > > > and I think it may be also possible if On Thu, 3 Nov 2016, Anirudh > Malhotra wrote: > > Hi, >> >> You can write a custom script which whenever the password is set in samba >> it >> sets it for the other tree as well, And you can attach this to the >> password >> changing app also. >> >> BR, >> Anirudh Malhotra >> Mail: [email protected] >> Facebook: www.facebook.com/8zero2 >> Twitter: @8zero2_in >> Blog: blog.8zero2.in >> >> On Tue, Nov 1, 2016 at 6:49 PM, Arun Gupta <[email protected]> wrote: >> Hi, >> >> I have configured 2 ldap tree, one for unix account (ou=User) >> (below is sample ldif) >> >> >> dn: uid=2011150,ou=User,dc=acer,dc=in >> empID: 2011150 >> username: test1 >> cn: test1 >> centre: PN >> objectClass: inetOrgPerson >> objectClass: posixAccount >> objectClass: top >> objectClass: shadowAccount >> oldempid: 1150 >> mail: [email protected] >> givenName: test1 >> uid: 2011150 >> shadowLastChange: 15590 >> loginShell: /bin/bash >> uidNumber: 11150 >> gidNumber: 11150 >> homeDirectory: /mbox4.2/test1 >> userPassword: {SHA}1SrgdEGUPa/U6KM43Kq9xTgnI7A= >> >> >> and another for samba tree (ou=samba) - (below is sample tree) >> >> dn: uid=test1,ou=samba,dc=acer,dc=in >> uid: test1 >> sambaSID: S-1-5-21-4079184197-2446238136-3299756537-1005 >> displayName: test1 >> sambaAcctFlags: [UX ] >> objectClass: sambaSamAccount >> objectClass: account >> sambaLMPassword: C2F63206FC9CF08A1AA818381E4E281B >> sambaNTPassword: 0242A7FEC5CD294F916925766089E573 >> >> and I am able to authenticate with samba configuration. But I am >> not able to find out how the password will sync means if user >> change his password then how NT password will reflect (here two >> different tree). Is it possible to sync, if yes please please >> help me out. >> >> -- >> >> Thanks & Regards, >> >> Arun Kumar Gupta >> >> ------------------------------------------------------------ >> --------------- >> ---------------------------------------------------- >> [ C-DAC is on Social-Media too. Kindly follow us at: >> Facebook: https://www.facebook.com/CDACINDIA & Twitter: >> @cdacindia ] >> >> This e-mail is for the sole use of the intended recipient(s) and >> may >> contain confidential and privileged information. If you are not >> the >> intended recipient, please contact the sender by reply e-mail >> and destroy >> all copies and the original message. Any unauthorized review, >> use, >> disclosure, dissemination, forwarding, printing or copying of >> this email >> is strictly prohibited and appropriate legal action will be >> taken. >> ------------------------------------------------------------ >> --------------- >> ---------------------------------------------------- >> >> >> >> >> >> > -- > > Thanks & Regards, > > Arun Kumar Gupta > Mail Administrator > HPC Infrastructure and Ecosystem Group > Centre for Development of Advanced Computing > Savitribai Phule Pune University Campus > PUNE-Maharastra > Phone : +91-20-25704347 > WEB : http://www.cdac.in/ > > ------------------------------------------------------------ > ------------------------------------------------------------------- > [ C-DAC is on Social-Media too. Kindly follow us at: > Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ] > > This e-mail is for the sole use of the intended recipient(s) and may > contain confidential and privileged information. If you are not the > intended recipient, please contact the sender by reply e-mail and destroy > all copies and the original message. Any unauthorized review, use, > disclosure, dissemination, forwarding, printing or copying of this email > is strictly prohibited and appropriate legal action will be taken. > ------------------------------------------------------------ > ------------------------------------------------------------------- > >
