The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

ActiveDirectory Question (eew!) by waveydavey2007-05-09 02:29:48
  yes it is possible by errtu 2007-05-09 03:39:51
I coded several php pages that do exactly that. Please don't ask me to share it, because i can't (company policy). However, i suggest you take a look here and do a search on ldap/win* as well. The more you learn about AD, the more you realize how MS works. I don't think you'll like it though. For example, to update the Terminal Server Profile Path for a user, you'll have to use a tool (windows resourcekit) because they simply won't allow you to alter the field via ldap :D Also, certain fields have to be set with escapes, other fields don't. See how inconsistent AD really is? No? You'll find out, i promise. Also you can't change permissions on folders using the newly created user's SID, because AD doesn't recognize it until about 15 minutes have passed. Good luck working with scheduled tasks! :D (i overcome it by dumping all the permission stuff into a batch file and let soon.exe (another reskit tool, iirc) handle it later). Needless to say that this requires apache/php to run on a windows box.

Have i scared you enough? No? Well, then can i also tell you that some stuff pulled from AD has nice accents in them, so you'll need some kind of substr function to deal with that.

But hey, it's lovely once it's working :) In my setup the following can/will be done:

- user gets created (+ email address, account detailed info) - adds the user to groups - sets the password of the user (this almost works, just requires a certain certificate to be installed on the domain controller) - creates home/profile/tsprofile directories - sets permissions on the dirs - creates a nice letter to the user that his/her account is created and prints this letter.

As i said, i can't share the entire file(s), but maybe i can help you with certain code, if you have questions. In any case, i wish you good luck :)
[ Reply ]
    ouch, and owie.... by resc2007-05-09 03:49:07
      something else by errtu2007-05-09 04:03:45
    On the 15-minute thing: by bwkaz2007-05-09 05:18:16
      thanks for the info :) by errtu2007-05-10 02:03:14
    I have been suspicious of Microsoft by Peace_man2007-05-09 06:33:30

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)