#117328 - 2004-04-06 12:33 AM
LDAP
|
RodteX
Fresh Scripter
Registered: 2004-03-23
Posts: 22
|
Please, i need help! See this code and help me:
$user_dep=GetObject("LDAP://cn=user.department,cn=user.samAccountname,ou=users,dc=aaa,dc=com") use g: "\\server" +$user_dep + "$"
And not map...Why? Please
|
Top
|
|
|
|
#117329 - 2004-04-06 01:05 AM
Re: LDAP
|
ShaneEP
MM club member
Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
|
Well...Im not an LDAP expert but I couldnt get the query line you posted to return anything. There was also a missing "\" in the drive mapping statement. I was able to get the below code to work in my env....Give it a shot.
Code:
$user_dep=GetObject("LDAP://CN="+@FullName+",OU=users,DC=aaa,DC=com") use g: "\\server\"+$user_dep.department+"$"
|
Top
|
|
|
|
#117330 - 2004-04-06 01:23 AM
Re: LDAP
|
RodteX
Fresh Scripter
Registered: 2004-03-23
Posts: 22
|
No Citrix, error in use..????...
|
Top
|
|
|
|
#117331 - 2004-04-06 01:25 AM
Re: LDAP
|
NTDOC
Administrator
Registered: 2000-07-28
Posts: 11623
Loc: CA
|
Rod
Probably the easiest thing to do is copy and save this script from Chris.
KiXforms - Active Directory Browser http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Number=91082
You will need to download and install KiXforms DLL from here http://www.kixforms.com
Then when you run it you can browse to the object you want and copy/paste the LDAP location into your script.
|
Top
|
|
|
|
#117332 - 2004-04-06 01:56 AM
Re: LDAP
|
RodteX
Fresh Scripter
Registered: 2004-03-23
Posts: 22
|
Please NTDOC! I did not understand. What I must after make to catch the code? And the archive kixforms.dll? What I must make with it?
Forgive me, I am new in kix
|
Top
|
|
|
|
#117334 - 2004-04-06 02:23 AM
Re: LDAP
|
RodteX
Fresh Scripter
Registered: 2004-03-23
Posts: 22
|
Whel....!!!! I don't no... Error in line 29 and 43 and 44...i'm desesperaid Sorry friend...
|
Top
|
|
|
|
#117336 - 2004-04-06 02:46 AM
Re: LDAP
|
RodteX
Fresh Scripter
Registered: 2004-03-23
Posts: 22
|
Whel, i'm copy code to this site. CTRL+C / CTRL+V...accurately equal
|
Top
|
|
|
|
#117338 - 2004-04-06 03:05 AM
Re: LDAP
|
RodteX
Fresh Scripter
Registered: 2004-03-23
Posts: 22
|
no friend, sees well, forgives me: this error is giving in script of chris s., that you indicated me above.
|
Top
|
|
|
|
#117341 - 2004-04-06 03:35 AM
Re: LDAP
|
RodteX
Fresh Scripter
Registered: 2004-03-23
Posts: 22
|
Sorry Sealeopard... Citrix and NTDOC, this error is in line 29 = $imglarge.imagesize = 32,32
|
Top
|
|
|
|
#117343 - 2004-04-06 02:19 PM
Re: LDAP
|
RodteX
Fresh Scripter
Registered: 2004-03-23
Posts: 22
|
Ok Sealeopard, thanks... DLL registered ok and versions of kix is: Kixtart - 4.22 Kixforms - 2.2.0
|
Top
|
|
|
|
#117344 - 2004-04-06 02:50 PM
Re: LDAP
|
Chris S.
MM club member
Registered: 2002-03-18
Posts: 2368
Loc: Earth
|
I think that this is what you're ultimately after...
Code:
$user_dep = GetObject("LDAP://CN=USERNAME,OU=users,DC=aaa,DC=com").Department use g: "\\server\" + $user_dep + "$"
|
Top
|
|
|
|
#117345 - 2004-04-06 03:09 PM
Re: LDAP
|
RodteX
Fresh Scripter
Registered: 2004-03-23
Posts: 22
|
No map Chris...
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
1 registered
(Allen)
and 466 anonymous users online.
|
|
|