Jump to content

Creating Windows Active Directory Users Through Web Browser?

l11h

Hi,

 

I was thinking if it was possible to create Windows Active Directory Users using a web browser rather than the local machine?

 

I just need the theory really don't need to know exactly how it will be implemented.

 

If I were to do this it will be using PHP and Apache web server (which shouldn't matter).

 

But if this was possible how would I go about doing this? 

 

Like I said this is just for personal use and won't be in a production environment so security is not a concern at all. 

 

Thanks for all your help in advance. 

Link to comment
Share on other sites

Link to post
Share on other sites

It certainly is possible. I wrote a small application a while back that allowed me to do just so. Check out the PHP LDAP functions as your starting point. http://www.php.net/manual/en/book.ldap.php If you are going to be using your application outside of your local environment, you will have to use ldap_add() with SSL/TSL. Hope this helps.

Link to comment
Share on other sites

Link to post
Share on other sites

It certainly is possible. I wrote a small application a while back that allowed me to do just so. Check out the PHP LDAP functions as your starting point. http://www.php.net/manual/en/book.ldap.php If you are going to be using your application outside of your local environment, you will have to use ldap_add() with SSL/TSL. Hope this helps.

 

Yeah I read about that seems interesting but for some reason I can't get LDAP authentication to work with Linux. I was asking for Windows Active Directory because I got that to work. 

 

The server side of LDAP works as doing ldapsearch I can see the users that have been added and the organizational units and all that. However, the problem comes with the client connection. 

 

I've followed a few tutorials including the one on the Ubuntu site (using Ubuntu 12.04, but also tried 13.04 (can't remember name)), and all of them having connection problems. 

 

So first they connect to the server, when i do getent passwd I can see the LDAP user in there so it's connected to the LDAP server. And all modules are broken so can't do sudo or su as it says Unknown command. Can't seem to find a fix ...

 

And SSHing e.g. (test1 is LDAP user), ssh test1@localhost it asks for password and then says Permission Not Allowed.

 

And the worst thing is once I reboot the machine it breaks and wont start up again lol. 

 

So I tried the Windows Active Directory and everything works perfectly fine. I can SSH as the AD user however i need to do ssh DOMAIN\\test1@ipaddress so it is annoying lol. 

 

So any ideas why this could be happening? 

 

Thanks :)

Link to comment
Share on other sites

Link to post
Share on other sites

I'll see if I can come up with something over the weekend.

 

Thanks for the help :)

 

Just to let you know some of the tutorials i've are are: 

https://help.ubuntu.com/community/LDAPClientAuthentication

https://www.digitalocean.com/community/articles/how-to-authenticate-client-computers-using-ldap-on-an-ubuntu-12-04-vps

I've used a few others but these are only what I can remember

 

So the server part seems to work, not 100% sure if it is actually working, but the client seems to crash once I try to restart the server. 

 

Windows Active Directory authentication using LikeWise works fine, have no idea why LDAP isn't working so annoying lol. 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×