Page 3 of 3 <123
Topic Options
#117368 - 2004-04-07 03:09 AM Re: LDAP
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
I did not see what version of KiXtart you are using. With all the errors you mention with a script that others can execute, it makes me think that you are not running 4.02 or higher. Can you confirm the version of KiXtart you are running?
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#117369 - 2004-04-07 03:29 AM Re: LDAP
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Quote:

Ok Sealeopard, thanks...
DLL registered ok and versions of kix is:
Kixtart - 4.22
Kixforms - 2.2.0


_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#117370 - 2004-04-07 02:15 PM Re: LDAP
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Darn, I hate being worng.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#117371 - 2004-04-07 05:24 PM Re: LDAP
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Quote:

worng (sp)



Just like Fonzie, you cannot even bring yourself to say it.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#117372 - 2004-04-07 06:43 PM Re: LDAP
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
I had another thought. Give this a try...

Code:

Break On

$nul=SetOption("WrapAtEOL","On")

$objADSystemInfo = CreateObject("ADSystemInfo")
If @ERROR
@ERROR " | " @SERROR ?
Else
"Fully Qualified User Name: " + $objADSystemInfo.UserName ?

$User = GetObject("LDAP://" + $objADSystemInfo.UserName)
If @ERROR @ERROR " | " @SERROR ? EndIf
"Username: " $User.samAccountName ?
"Department: " $User.Department ?
EndIf


Top
#117373 - 2004-04-07 07:12 PM Re: LDAP
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
nice one Chris. Seems to work great for me. I went ahead and uploaded a stripped down copy for our clipboard challenged friend. All that needs changed is the server in the use statement.

ldap_dept2.kix

Top
Page 3 of 3 <123


Moderator:  Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1198 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.059 seconds in which 0.03 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org