Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 12th, 2003, 05:13 AM
Registered User
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default creation of user & Changing password for existing

HI All,

I need to Create Users in LDAP server, using ADSI. I tried the following Code. But It gives error "General Access Denied error".

Set ou = GetObject("LDAP://Fathima/OU=People, DC=Fathima")
Set usr = ou.Create("user", "CN=John Smith")
'--- Mandatory Attributes----
usr.Put "objectClass", "top"
usr.Put "objectClass", "Person"
usr.Put "objectClass", "organizationalPerson"
usr.Put "objectClass", "inetorgperson"
usr.Put "uid", "u3"
usr.Put "userpassword", "password"
usr.Put "sn", "u3"

usr.SetInfo

Can anybody post code snippet for the login into ldap server Account, creation of user & Changing password for existing user account in LDAP server using ADSI.

Thanks in advance


kkkfff





Similar Threads
Thread Thread Starter Forum Replies Last Post
changing the server password using dreamweaver ? kennethjaysone Dreamweaver (all versions) 3 August 8th, 2007 06:10 PM
changing Password dynamically in crystal report irfanthegame Crystal Reports 0 October 7th, 2005 06:59 AM
Changing Password in Active Directory chandu80 General .NET 0 June 6th, 2005 02:47 AM
username/password creation of login page in asp undercurrent Classic ASP Basics 3 March 21st, 2005 08:38 PM
Changing password in MySql thegooner BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 May 24th, 2004 05:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.