KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

User AD information tool

 
Post new topic   Reply to topic    KiXforms Forum Index -> Advanced Scripting
View previous topic :: View next topic  
Author Message
Radimus
KiXforms Enthusiast
KiXforms Enthusiast


Joined: 05 Mar 2003
Posts: 157
Location: Tampa, Florida

PostPosted: Wed Sep 06, 2006 3:50 pm    Post subject: User AD information tool Reply with quote

This tool reads the infor fine, and writes with domain admin privledges

Any ideas about working around the privledges issue?

I doubt the domain admins will modify user permissions, so I think I think either it will have to impersonate an account or export to an ini file for IT staff to upload.



UserDetails.kix
 Description:

Download
 Filename:  UserDetails.kix
 Filesize:  23.82 KB
 Downloaded:  1446 Time(s)


Departments.txt
 Description:

Download
 Filename:  Departments.txt
 Filesize:  139 Bytes
 Downloaded:  1429 Time(s)


addresses.ini.txt
 Description:
rename to ini...

Download
 Filename:  addresses.ini.txt
 Filesize:  307 Bytes
 Downloaded:  1344 Time(s)

Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Thu Sep 07, 2006 6:13 am    Post subject: Reply with quote

While I have not had a chance to look this over yet, I am going to do so tomorrow and approach our management (assuming it works, and I am sure it does) with the idea of deploying it.

We may have to bastardize it, and make it into an ASP page, but at least I know that we are starting with a quality piece of work.

_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
Radimus
KiXforms Enthusiast
KiXforms Enthusiast


Joined: 05 Mar 2003
Posts: 157
Location: Tampa, Florida

PostPosted: Thu Sep 07, 2006 1:31 pm    Post subject: Reply with quote

Until I can figure out an impersonation method, I have it writing out to an INI file, then I wrote a tool for IT staff to use that does a bulk import of the file.


UserDetails.kix
 Description:
a bit updated, with a custom help window because users have a very limited comprehension ability...

Download
 Filename:  UserDetails.kix
 Filesize:  27.22 KB
 Downloaded:  1398 Time(s)


LoadtoAD.kix
 Description:

Download
 Filename:  LoadtoAD.kix
 Filesize:  1008 Bytes
 Downloaded:  1306 Time(s)

Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Thu Sep 07, 2006 11:23 pm    Post subject: Explanation please Reply with quote

Going over what you have done with this and don't quite follow what you are doing here.
Code:

Function TranslateName($InitType, $BindName, $LookupNameType, $LookupName, $ReturnNameType)
   Dim $InitType, $BindName, $LookupNameType, $LookupName, $ReturnNameType
   Dim $NameTranslate, $ReturnName, $Error, $ErrorText
   $Error = 0      $ErrorText = ""      $ReturnName = ""
   $NameTranslate = CREATEOBJECT ("NameTranslate")      $Error = @error   $ErrorText = @serror
   if $Error = 0
      $NameTranslate.Init ($InitType, $BindName)      $Error = @error   $ErrorText = @serror
      if $Error = 0
         $NameTranslate.Set ($LookupNameType, $LookupName)   $Error = @error   $ErrorText = @serror
         if $Error = 0
            $ReturnName = $NameTranslate.Get($ReturnNameType)   $Error = @error   $ErrorText = @serror
         endif
      endif
   endif
   $TranslateName = $ReturnName, $Error, $ErrorText
Endfunction


Would you mind some more details about how this is working?

_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
Radimus
KiXforms Enthusiast
KiXforms Enthusiast


Joined: 05 Mar 2003
Posts: 157
Location: Tampa, Florida

PostPosted: Fri Sep 08, 2006 4:12 am    Post subject: Reply with quote

That is a UDF to convert one type of account name into another, to convert for example the distinguished LDAP name to the @userid format, or descriptive name.

see: http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=82426&an=0&page=2#82426

in this script it converts the ldap of a user account into a version that the typical luser can understand, and then convert a selected one back into the ldap version for saving into the AD user property (managername and assistant name)
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Gargoyle
KiXforms Aficionado
KiXforms Aficionado


Joined: 30 Dec 2003
Posts: 366
Location: Arizona

PostPosted: Fri Sep 08, 2006 6:02 am    Post subject: Reply with quote

Thanks, did not realize it was an UDF that was already written with full documentation.

Looks like my management wants to make an ASP web page with your idea and they were asking me ?'s I did not have the answer to yet...

Again thanks.

_________________
Parents were invented to make children happy by giving them something to ignore.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Advanced Scripting All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group