Login    Forum    Register    Search    FAQ

Board index » Active Directory » Active Directory Via PHP




Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Change Active Directory Password
 Post Posted: Wed Aug 03, 2005 1:34 pm 
Offline
Need to get out more
Need to get out more
User avatar

Joined: Wed May 18, 2005 3:53 pm
Posts: 293
Location: UK
Download the Zip and extract to your web server

make the changes to the php as layed out in the read me.

This will allow your users to change there Active Directory password online using a secure 128bit ssl conection.

also password policys are still inforced.

You will need to be loged in to download.

please post any problems here.


You do not have the required permissions to view the files attached to this post.

_________________
http://www.apple-scripts.com


Top 
 Profile E-mail  
 
 Post subject: error on the finduser.php
 Post Posted: Wed Sep 28, 2005 3:42 pm 
Offline
Need to get out more
Need to get out more
User avatar

Joined: Wed May 18, 2005 3:53 pm
Posts: 293
Location: UK
error on the finduser.php


change

Code:


$filter = "(cn=$username)";

to

$filter = "(samaccountname=$username)";

_________________
http://www.apple-scripts.com


Last edited by Dominic on Sat Nov 12, 2005 2:39 pm, edited 2 times in total.

Top 
 Profile E-mail  
 
 Post subject: Zip file?
 Post Posted: Fri Oct 28, 2005 2:05 pm 
Am I being dim or is there no zip file here?


Top 
  
 
 Post subject: I am dim
 Post Posted: Fri Oct 28, 2005 2:07 pm 
Offline
Just started
Just started

Joined: Fri Oct 28, 2005 2:02 pm
Posts: 1
Location: Southampton UK
Didn't relaise I'd logged out!

Doh!


Top 
 Profile  
 
 Post subject:
 Post Posted: Tue Jan 31, 2006 3:42 am 
Offline
Not quite half way
Not quite half way

Joined: Sat Dec 17, 2005 2:29 am
Posts: 82
I haven't looked, but I doubt this does it... Is it possible to reset a users password via php? Not change a password, but reset.. Like give permissions to a specific group to be able to reset a certain users password if needed... This would be much better then giving these people access to the server, and only access to reset passwords, rather then messaging me to do a password change.


Top 
 Profile  
 
 Post subject:
 Post Posted: Tue Jan 31, 2006 10:03 am 
Offline
Need to get out more
Need to get out more
User avatar

Joined: Wed May 18, 2005 3:53 pm
Posts: 293
Location: UK
It would not be difficult to have a group change someone else's password.

When you say reset are you talking about reseting if the account is locked?

or setting the password to what it was first set to.

Users can only ever change there own password much as they can with Kerberos, but this can be modified.

How ever this method will work with or without Kerberos and for any client with a web browser.

Let me know what you are after and i am sure that we can write the code to suit your needs.

_________________
http://www.apple-scripts.com


Top 
 Profile E-mail  
 
 Post subject:
 Post Posted: Tue Jan 31, 2006 2:19 pm 
Offline
Not quite half way
Not quite half way

Joined: Sat Dec 17, 2005 2:29 am
Posts: 82
When I say reset I mean the same as you would if you were in Active Directory and you right click on a user, and select reset password. It asks for the new password, confirm new password, and a checkbox asking if they should be forced to changed the password on first login. That way if a student forgets their password a teacher is able to login and reset the password via a web page.


Top 
 Profile  
 
 Post subject:
 Post Posted: Tue Jan 31, 2006 4:09 pm 
Offline
Need to get out more
Need to get out more
User avatar

Joined: Wed May 18, 2005 3:53 pm
Posts: 293
Location: UK
colesy wrote:
When I say reset I mean the same as you would if you were in Active Directory and you right click on a user, and select reset password. It asks for the new password, confirm new password, and a checkbox asking if they should be forced to changed the password on first login. That way if a student forgets their password a teacher is able to login and reset the password via a web page.


That would be easy.

You can set a group to replace the password with a new password regardless of what the old password was.

If you want me to write the PHP for this let me know.

_________________
http://www.apple-scripts.com


Top 
 Profile E-mail  
 
 Post subject:
 Post Posted: Tue Jan 31, 2006 4:21 pm 
Offline
Not quite half way
Not quite half way

Joined: Sat Dec 17, 2005 2:29 am
Posts: 82
That would be awesome if you could!


Top 
 Profile  
 
 Post subject: Password
 Post Posted: Wed Feb 01, 2006 12:26 pm 
Offline
Need to get out more
Need to get out more
User avatar

Joined: Wed May 18, 2005 3:53 pm
Posts: 293
Location: UK
here you go

this will allow anyone to change the password for any user

use the restrict setting in your web server to only allow groups or users to access this

change the following in userchange

$dn = "OU / DN Path i.e OU=Account,DC=server,DC=com";
$ad = "ldaps://IP of Server";
$au = "admin@domain"; // administrator username @ domain i.e admin@server.com
$Pass = "Admin Password";

let me know if thats what you were after


You do not have the required permissions to view the files attached to this post.

_________________
http://www.apple-scripts.com


Top 
 Profile E-mail  
 
 Post subject:
 Post Posted: Wed Feb 01, 2006 6:44 pm 
Offline
Not quite half way
Not quite half way

Joined: Sat Dec 17, 2005 2:29 am
Posts: 82
Trying this out now.. but getting Could not connect error.. So I am not making it very far.. This is the settings I have:

$dn = "OU=Students,OU=Users,OU=HCSS,OU=Schools,DC=alcdsb,DC=on,DC=ca";
$ad = "ldaps://10.22.35.4";
$au = "user@alcdsb.on.ca";
$Pass = "password";

I am assuming my OU's are the path to the container where the user accounts I want to edit are.. I was told I need to put it in backwards, which I did..

Also, I see that I have to specify $au, and $Pass. This is the user account that has permissions to reset passwords right? If so, can I use variables in that field? Basically I would make a user input their username in password to authenticate, then they specify the username of the user that needs their password reset, then put in the password.. How would we integrate the option to force user to change password on next login.

Thanks agian!


Top 
 Profile  
 
 Post subject:
 Post Posted: Thu Feb 02, 2006 10:01 am 
Offline
Need to get out more
Need to get out more
User avatar

Joined: Wed May 18, 2005 3:53 pm
Posts: 293
Location: UK
The user is a admin

admin@HCSS.Schools.alcdsb.on.ca

adminpass

the $dn = LDAP path to users.

This will allow anyone who can run this script to reset the password of anyuser. (because it uses admin)

You still need a SSL conection to the AD as you are running LDAPS.

the username and password page is for the user who's password you want to chnage.

_________________
http://www.apple-scripts.com


Top 
 Profile E-mail  
 
 Post subject:
 Post Posted: Mon Feb 13, 2006 12:25 am 
Offline
Not quite half way
Not quite half way

Joined: Sat Dec 17, 2005 2:29 am
Posts: 82
Would there be away to create a page to have someone login.. Check to see if they have authenticated, then check to make sure they are part of a specific group. If not do not allow them access to change the password.. If they are then let them change the password..

Once they have authenticated, and have passed the group check, then allow them to enter the info to change a user's password..

I have some other features I would like to implement as well.. Like user search, and pull the full name of the user to verify the username is actually the user you want to change. I should be able to code this myself once I get the main part working..


Top 
 Profile  
 
 Post subject:
 Post Posted: Tue Feb 14, 2006 2:03 pm 
Offline
Need to get out more
Need to get out more
User avatar

Joined: Wed May 18, 2005 3:53 pm
Posts: 293
Location: UK
colesy wrote:
Would there be away to create a page to have someone login.. Check to see if they have authenticated, then check to make sure they are part of a specific group. If not do not allow them access to change the password.. If they are then let them change the password..

Once they have authenticated, and have passed the group check, then allow them to enter the info to change a user's password..

I have some other features I would like to implement as well.. Like user search, and pull the full name of the user to verify the username is actually the user you want to change. I should be able to code this myself once I get the main part working..


Should not be difficult to code.

As soon as I get some free time we can code out what you are after.

the LDAP lookup will me memberof

so if ($someone == $i have done a search to find groups) then ok; else do nothing;

_________________
http://www.apple-scripts.com


Top 
 Profile E-mail  
 
 Post subject:
 Post Posted: Thu Feb 16, 2006 4:06 am 
Offline
Just started
Just started

Joined: Thu Feb 16, 2006 3:35 am
Posts: 6
I new to this but would there be a way to... hmm make it possible to add a question like "Your last four numbers in your SS#"
to the notes section of AD and answers.

So users can reset there owe account if there needed to.??

Understand?
FYI: Zipping the Images would be real nice. Or you can send to me private.


You do not have the required permissions to view the files attached to this post.


Last edited by jphilbert on Thu Feb 16, 2006 1:18 pm, edited 1 time in total.

Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next

Board index » Active Directory » Active Directory Via PHP


Who is online

Users browsing this forum: No registered users and 0 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron