Location: List Archives

Your Home Page ..

Site Articles:

Add to Google

Add to My Yahoo!

Mail List Posts:

Add to Google

Add to My Yahoo!

Friends

Friends

ScriptLogic

List Archives

This forum is an archive of all posts to our mailing list over the past few years.  The forum is set read only therefore to contribute you will need to join our list community.  See more info about this here.

List Archives

Subject: [ActiveDir] Scripting Issue again
Prev Next
You are not authorized to post a reply.

AuthorMessages
jsalandra1User is Offline

Posts:61

03/24/2008 2:24 PM  
Hello everyone, I have another scripting issue that I was hoping you
could help me out with.



Below is the syntax

-------------------------------------------



'Map Network Drives or run commands based on NEW OU Membership



strUserPathNEW = "LDAP://" & objSysInfo.UserName 'Set the variable
(strUserPathNEW) to the LDAP string for the person logging on

Set objUserNEW = GetObject(strUserPathNEW) 'Set the variable
(objUserNEW) to the variable value defined in the variable (strUserPath)



strOUPathNEW = objUserNEW.Parent 'Set the variable (strOUPathNEW) to the
Parent Distinguisted Name of the account logging in

arrUserNameNEW = Split(strOUPathNEW, ",") 'Remove the commas the the
Parent DN and place values in an array

arrOUNEW = Split(arrUserNameNEW(0), ",") 'Select the first value
(Second value would be a 1) and remove the equal sign and place in an
array

strUserOUNEW = arrOUNEW(0) 'Set the variable (strUserOUNEW) to the first
value of the array (arrOUNEW)







Select Case strUserOUNEW 'Select statement that checks to see if
the value in strUserOUNEW equals the values below

----------------------------------------------





What I was originally trying to accomplish works great, it breaks apart
the LDAP string into an array and I used to choose the second value in
the list which used to be a (1), but now we have moving to a new OU
structure and I need to be able to pull up the first OU without the
LDAP://OU= in front of the value. How can I accomplish this?



Justin A. Salandra

Network Engineer


"IMPORTANT NOTICE: The information in this email
(and any attachments hereto) is confidential and may be
protected by legal privileges and work product immunities.
If you are not the intended recipient, you must not use or
disseminate the information. Receipt by anyone other than the
intended recipient is not a waiver of any attorney-client or work
product privilege. If you have received this email in error, please
immediately notify me by "Reply" command and permanently
delete the original and any copies or printouts thereof. Although
this email and any attachments are believed to be free of any virus
or other defect that might affect any computer system into which it
is received and opened, it is the responsibility of the recipient to
insure that it is virus free and no responsibility is accepted by
Transatlantic Reinsurance Company or its subsidiaries or affiliates
either jointly or severally, for any loss or damage arising in any way
from its use."



bdesmondUser is Offline

Posts:161

03/24/2008 2:29 PM  
Justin-

I don't fully follow your sample (which may just be that i'm tired), but,
get the parent of the user and then read the "ou" property of said object:

set brian = LDAP://cn=brian,ou=cool
<ldap://cn=brian,ou=cool/>people,dc=briandesmond,dc=com.

set parent = brian.parent

ou = parent.get("ou")

On Mon, Mar 24, 2008 at 2:19 PM, Salandra, Justin <jsalandra@transre.com>
wrote:

> Hello everyone, I have another scripting issue that I was hoping you
> could help me out with.
>
>
>
> Below is the syntax
>
> -------------------------------------------
>
>
>
> 'Map Network Drives or run commands based on NEW OU Membership
>
>
>
> strUserPathNEW = "LDAP://" & objSysInfo.UserName 'Set the variable
> (strUserPathNEW) to the LDAP string for the person logging on
>
> Set objUserNEW = GetObject(strUserPathNEW) 'Set the variable (objUserNEW)
> to the variable value defined in the variable (strUserPath)
>
>
>
> strOUPathNEW = objUserNEW.Parent 'Set the variable (strOUPathNEW) to the
> Parent Distinguisted Name of the account logging in
>
> arrUserNameNEW = Split(strOUPathNEW, ",") 'Remove the commas the the
> Parent DN and place values in an array
>
> arrOUNEW = Split(arrUserNameNEW(0), ",") 'Select the first value
> (Second value would be a 1) and remove the equal sign and place in an array
>
> strUserOUNEW = arrOUNEW(0) 'Set the variable (strUserOUNEW) to the first
> value of the array (arrOUNEW)
>
>
>
>
>
>
>
> Select Case strUserOUNEW 'Select statement that checks to see if the
> value in strUserOUNEW equals the values below
>
> ----------------------------------------------
>
>
>
>
>
> What I was originally trying to accomplish works great, it breaks apart
> the LDAP string into an array and I used to choose the second value in the
> list which used to be a (1), but now we have moving to a new OU structure
> and I need to be able to pull up the first OU without the LDAP://OU= in
> front of the value. How can I accomplish this?
>
>
>
> Justin A. Salandra
>
> Network Engineer
>
> "IMPORTANT NOTICE: The information in this email
> (and any attachments hereto) is confidential and may be
> protected by legal privileges and work product immunities.
> If you are not the intended recipient, you must not use or
> disseminate the information. Receipt by anyone other than the
> intended recipient is not a waiver of any attorney-client or work
> product privilege. If you have received this email in error, please
> immediately notify me by "Reply" command and permanently
> delete the original and any copies or printouts thereof. Although
> this email and any attachments are believed to be free of any virus
> or other defect that might affect any computer system into which it
> is received and opened, it is the responsibility of the recipient to
> insure that it is virus free and no responsibility is accepted by
> Transatlantic Reinsurance Company or its subsidiaries or affiliates
> either jointly or severally, for any loss or damage arising in any way
> from its use."
>
>
>
>
>


--
Thanks,
Brian Desmond
brian@briandesmond.com

c - 312.731.3132

jsalandra1User is Offline

Posts:61

03/24/2008 2:39 PM  
Not sure I follow you, I am setting the variable to "LDAP://" &
objSysInfo.UserName



Then Taking that string and getting the parent OU Path of the logged in
account



Then I take that OU Path and break it into an array where I separate the
values based on commas



Then I was originally choosing the second value which is done with the
Split command (1) but now I want the first value in the array, but that
value has the LDAP://OU= in from of the name of the OU, I just want the
name of the OU.





Justin A. Salandra

Network Engineer



________________________________

From: ActiveDir-owner@mail.activedir.org
[mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Brian Desmond
Sent: Monday, March 24, 2008 2:24 PM
To: ActiveDir@mail.activedir.org
Subject: Re: [ActiveDir] Scripting Issue again



Justin-



I don't fully follow your sample (which may just be that i'm tired),
but, get the parent of the user and then read the "ou" property of said
object:



set brian = LDAP://cn=brian,ou=cool <ldap://cn=brian,ou=cool/>
people,dc=briandesmond,dc=com.



set parent = brian.parent



ou = parent.get("ou")

On Mon, Mar 24, 2008 at 2:19 PM, Salandra, Justin
<jsalandra@transre.com> wrote:

Hello everyone, I have another scripting issue that I was hoping you
could help me out with.



Below is the syntax

-------------------------------------------



'Map Network Drives or run commands based on NEW OU Membership



strUserPathNEW = "LDAP://" & objSysInfo.UserName 'Set the variable
(strUserPathNEW) to the LDAP string for the person logging on

Set objUserNEW = GetObject(strUserPathNEW) 'Set the variable
(objUserNEW) to the variable value defined in the variable (strUserPath)



strOUPathNEW = objUserNEW.Parent 'Set the variable (strOUPathNEW) to the
Parent Distinguisted Name of the account logging in

arrUserNameNEW = Split(strOUPathNEW, ",") 'Remove the commas the the
Parent DN and place values in an array

arrOUNEW = Split(arrUserNameNEW(0), ",") 'Select the first value
(Second value would be a 1) and remove the equal sign and place in an
array

strUserOUNEW = arrOUNEW(0) 'Set the variable (strUserOUNEW) to the first
value of the array (arrOUNEW)







Select Case strUserOUNEW 'Select statement that checks to see if
the value in strUserOUNEW equals the values below

----------------------------------------------





What I was originally trying to accomplish works great, it breaks apart
the LDAP string into an array and I used to choose the second value in
the list which used to be a (1), but now we have moving to a new OU
structure and I need to be able to pull up the first OU without the
LDAP://OU= in front of the value. How can I accomplish this?



Justin A. Salandra

Network Engineer

"IMPORTANT NOTICE: The information in this email
(and any attachments hereto) is confidential and may be
protected by legal privileges and work product immunities.
If you are not the intended recipient, you must not use or
disseminate the information. Receipt by anyone other than the
intended recipient is not a waiver of any attorney-client or work
product privilege. If you have received this email in error, please
immediately notify me by "Reply" command and permanently
delete the original and any copies or printouts thereof. Although
this email and any attachments are believed to be free of any virus
or other defect that might affect any computer system into which it
is received and opened, it is the responsibility of the recipient to
insure that it is virus free and no responsibility is accepted by
Transatlantic Reinsurance Company or its subsidiaries or affiliates
either jointly or severally, for any loss or damage arising in any way
from its use."







--
Thanks,
Brian Desmond
brian@briandesmond.com

c - 312.731.3132


"IMPORTANT NOTICE: The information in this email
(and any attachments hereto) is confidential and may be
protected by legal privileges and work product immunities.
If you are not the intended recipient, you must not use or
disseminate the information. Receipt by anyone other than the
intended recipient is not a waiver of any attorney-client or work
product privilege. If you have received this email in error, please
immediately notify me by "Reply" command and permanently
delete the original and any copies or printouts thereof. Although
this email and any attachments are believed to be free of any virus
or other defect that might affect any computer system into which it
is received and opened, it is the responsibility of the recipient to
insure that it is virus free and no responsibility is accepted by
Transatlantic Reinsurance Company or its subsidiaries or affiliates
either jointly or severally, for any loss or damage arising in any way
from its use."



bdesmondUser is Offline

Posts:161

03/24/2008 2:55 PM  
I thought you just wanted the name of the parent OU

let mystr = LDAP://OU=foo,ou=bar,dc=cool,dc=com<ldap://OU=foo,ou=bar,dc=cool,dc=com/>

so, right(mystr, len(mystr) - 10) should work

--brian



On Mon, Mar 24, 2008 at 2:34 PM, Salandra, Justin <jsalandra@transre.com>
wrote:

> Not sure I follow you, I am setting the variable to "LDAP://" &
> objSysInfo.UserName
>
>
>
> Then Taking that string and getting the parent OU Path of the logged in
> account
>
>
>
> Then I take that OU Path and break it into an array where I separate the
> values based on commas
>
>
>
> Then I was originally choosing the second value which is done with the
> Split command (1) but now I want the first value in the array, but that
> value has the LDAP://OU= in from of the name of the OU, I just want the name
> of the OU.
>
>
>
>
>
> Justin A. Salandra
>
> Network Engineer
>
>
> ------------------------------
>
> *From:* ActiveDir-owner@mail.activedir.org [mailto:
> ActiveDir-owner@mail.activedir.org] *On Behalf Of *Brian Desmond
> *Sent:* Monday, March 24, 2008 2:24 PM
> *To:* ActiveDir@mail.activedir.org
> *Subject:* Re: [ActiveDir] Scripting Issue again
>
>
>
> Justin-
>
>
>
> I don't fully follow your sample (which may just be that i'm tired), but,
> get the parent of the user and then read the "ou" property of said object:
>
>
>
> set brian = LDAP://cn=brian,ou=cool people,dc=briandesmond,dc=com.
>
>
>
> set parent = brian.parent
>
>
>
> ou = parent.get("ou")
>
> On Mon, Mar 24, 2008 at 2:19 PM, Salandra, Justin <jsalandra@transre.com>
> wrote:
>
> Hello everyone, I have another scripting issue that I was hoping you could
> help me out with.
>
>
>
> Below is the syntax
>
> -------------------------------------------
>
>
>
> 'Map Network Drives or run commands based on NEW OU Membership
>
>
>
> strUserPathNEW = "LDAP://" & objSysInfo.UserName 'Set the variable
> (strUserPathNEW) to the LDAP string for the person logging on
>
> Set objUserNEW = GetObject(strUserPathNEW) 'Set the variable (objUserNEW)
> to the variable value defined in the variable (strUserPath)
>
>
>
> strOUPathNEW = objUserNEW.Parent 'Set the variable (strOUPathNEW) to the
> Parent Distinguisted Name of the account logging in
>
> arrUserNameNEW = Split(strOUPathNEW, ",") 'Remove the commas the the
> Parent DN and place values in an array
>
> arrOUNEW = Split(arrUserNameNEW(0), ",") 'Select the first value
> (Second value would be a 1) and remove the equal sign and place in an array
>
> strUserOUNEW = arrOUNEW(0) 'Set the variable (strUserOUNEW) to the first
> value of the array (arrOUNEW)
>
>
>
>
>
>
>
> Select Case strUserOUNEW 'Select statement that checks to see if the
> value in strUserOUNEW equals the values below
>
> ----------------------------------------------
>
>
>
>
>
> What I was originally trying to accomplish works great, it breaks apart
> the LDAP string into an array and I used to choose the second value in the
> list which used to be a (1), but now we have moving to a new OU structure
> and I need to be able to pull up the first OU without the LDAP://OU= in
> front of the value. How can I accomplish this?
>
>
>
> Justin A. Salandra
>
> Network Engineer
>
> "IMPORTANT NOTICE: The information in this email
>
> (and any attachments hereto) is confidential and may be
>
> protected by legal privileges and work product immunities.
>
> If you are not the intended recipient, you must not use or
>
> disseminate the information. Receipt by anyone other than the
>
> intended recipient is not a waiver of any attorney-client or work
>
> product privilege. If you have received this email in error, please
>
> immediately notify me by "Reply" command and permanently
>
> delete the original and any copies or printouts thereof. Although
>
> this email and any attachments are believed to be free of any virus
>
> or other defect that might affect any computer system into which it
>
> is received and opened, it is the responsibility of the recipient to
>
> insure that it is virus free and no responsibility is accepted by
>
> Transatlantic Reinsurance Company or its subsidiaries or affiliates
>
> either jointly or severally, for any loss or damage arising in any way
>
> from its use."
>
>
>
>
>
>
>
>
>
>
> --
> Thanks,
> Brian Desmond
> brian@briandesmond.com
>
> c - 312.731.3132
>
> "IMPORTANT NOTICE: The information in this email
> (and any attachments hereto) is confidential and may be
> protected by legal privileges and work product immunities.
> If you are not the intended recipient, you must not use or
> disseminate the information. Receipt by anyone other than the
> intended recipient is not a waiver of any attorney-client or work
> product privilege. If you have received this email in error, please
> immediately notify me by "Reply" command and permanently
> delete the original and any copies or printouts thereof. Although
> this email and any attachments are believed to be free of any virus
> or other defect that might affect any computer system into which it
> is received and opened, it is the responsibility of the recipient to
> insure that it is virus free and no responsibility is accepted by
> Transatlantic Reinsurance Company or its subsidiaries or affiliates
> either jointly or severally, for any loss or damage arising in any way
> from its use."
>
>
>
>
>


--
Thanks,
Brian Desmond
brian@briandesmond.com

c - 312.731.3132

jsalandra1User is Offline

Posts:61

03/24/2008 3:15 PM  
No in that example I want "foo"



Justin A. Salandra

Network Engineer



________________________________

From: ActiveDir-owner@mail.activedir.org
[mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Brian Desmond
Sent: Monday, March 24, 2008 2:51 PM
To: ActiveDir@mail.activedir.org
Subject: Re: [ActiveDir] Scripting Issue again



I thought you just wanted the name of the parent OU



let mystr = LDAP://OU=foo,ou=bar,dc=cool,dc=com
<ldap://OU=foo,ou=bar,dc=cool,dc=com/>



so, right(mystr, len(mystr) - 10) should work



--brian






On Mon, Mar 24, 2008 at 2:34 PM, Salandra, Justin
<jsalandra@transre.com> wrote:

Not sure I follow you, I am setting the variable to "LDAP://" &
objSysInfo.UserName



Then Taking that string and getting the parent OU Path of the logged in
account



Then I take that OU Path and break it into an array where I separate the
values based on commas



Then I was originally choosing the second value which is done with the
Split command (1) but now I want the first value in the array, but that
value has the LDAP://OU= in from of the name of the OU, I just want the
name of the OU.





Justin A. Salandra

Network Engineer



________________________________

From: ActiveDir-owner@mail.activedir.org
[mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of Brian Desmond
Sent: Monday, March 24, 2008 2:24 PM
To: ActiveDir@mail.activedir.org
Subject: Re: [ActiveDir] Scripting Issue again



Justin-



I don't fully follow your sample (which may just be that i'm tired),
but, get the parent of the user and then read the "ou" property of said
object:



set brian = LDAP://cn=brian,ou=cool people,dc=briandesmond,dc=com.



set parent = brian.parent



ou = parent.get("ou")

On Mon, Mar 24, 2008 at 2:19 PM, Salandra, Justin
<jsalandra@transre.com> wrote:

Hello everyone, I have another scripting issue that I was hoping you
could help me out with.



Below is the syntax

-------------------------------------------



'Map Network Drives or run commands based on NEW OU Membership



strUserPathNEW = "LDAP://" & objSysInfo.UserName 'Set the variable
(strUserPathNEW) to the LDAP string for the person logging on

Set objUserNEW = GetObject(strUserPathNEW) 'Set the variable
(objUserNEW) to the variable value defined in the variable (strUserPath)



strOUPathNEW = objUserNEW.Parent 'Set the variable (strOUPathNEW) to the
Parent Distinguisted Name of the account logging in

arrUserNameNEW = Split(strOUPathNEW, ",") 'Remove the commas the the
Parent DN and place values in an array

arrOUNEW = Split(arrUserNameNEW(0), ",") 'Select the first value
(Second value would be a 1) and remove the equal sign and place in an
array

strUserOUNEW = arrOUNEW(0) 'Set the variable (strUserOUNEW) to the first
value of the array (arrOUNEW)







Select Case strUserOUNEW 'Select statement that checks to see if
the value in strUserOUNEW equals the values below

----------------------------------------------





What I was originally trying to accomplish works great, it breaks apart
the LDAP string into an array and I used to choose the second value in
the list which used to be a (1), but now we have moving to a new OU
structure and I need to be able to pull up the first OU without the
LDAP://OU= in front of the value. How can I accomplish this?



Justin A. Salandra

Network Engineer

"IMPORTANT NOTICE: The information in this email
(and any attachments hereto) is confidential and may be
protected by legal privileges and work product immunities.
If you are not the intended recipient, you must not use or
disseminate the information. Receipt by anyone other than the
intended recipient is not a waiver of any attorney-client or work
product privilege. If you have received this email in error, please
immediately notify me by "Reply" command and permanently
delete the original and any copies or printouts thereof. Although
this email and any attachments are believed to be free of any virus
or other defect that might affect any computer system into which it
is received and opened, it is the responsibility of the recipient to
insure that it is virus free and no responsibility is accepted by
Transatlantic Reinsurance Company or its subsidiaries or affiliates
either jointly or severally, for any loss or damage arising in any way
from its use."







--
Thanks,
Brian Desmond
brian@briandesmond.com

c - 312.731.3132

"IMPORTANT NOTICE: The information in this email
(and any attachments hereto) is confidential and may be
protected by legal privileges and work product immunities.
If you are not the intended recipient, you must not use or
disseminate the information. Receipt by anyone other than the
intended recipient is not a waiver of any attorney-client or work
product privilege. If you have received this email in error, please
immediately notify me by "Reply" command and permanently
delete the original and any copies or printouts thereof. Although
this email and any attachments are believed to be free of any virus
or other defect that might affect any computer system into which it
is received and opened, it is the responsibility of the recipient to
insure that it is virus free and no responsibility is accepted by
Transatlantic Reinsurance Company or its subsidiaries or affiliates
either jointly or severally, for any loss or damage arising in any way
from its use."







--
Thanks,
Brian Desmond
brian@briandesmond.com

c - 312.731.3132


"IMPORTANT NOTICE: The information in this email
(and any attachments hereto) is confidential and may be
protected by legal privileges and work product immunities.
If you are not the intended recipient, you must not use or
disseminate the information. Receipt by anyone other than the
intended recipient is not a waiver of any attorney-client or work
product privilege. If you have received this email in error, please
immediately notify me by "Reply" command and permanently
delete the original and any copies or printouts thereof. Although
this email and any attachments are believed to be free of any virus
or other defect that might affect any computer system into which it
is received and opened, it is the responsibility of the recipient to
insure that it is virus free and no responsibility is accepted by
Transatlantic Reinsurance Company or its subsidiaries or affiliates
either jointly or severally, for any loss or damage arising in any way
from its use."



bdesmondUser is Offline

Posts:161

03/24/2008 3:45 PM  
Then my original reply stands:

set user = getobject("LDAP://" & dn_of_user)

set parent = user.parent

wscript.echo "Parent OU: " & parent.get("ou")

On Mon, Mar 24, 2008 at 3:14 PM, Salandra, Justin <jsalandra@transre.com>
wrote:

> No in that example I want "foo"
>
>
>
> Justin A. Salandra
>
> Network Engineer
>
>
> ------------------------------
>
> *From:* ActiveDir-owner@mail.activedir.org [mailto:
> ActiveDir-owner@mail.activedir.org] *On Behalf Of *Brian Desmond
> *Sent:* Monday, March 24, 2008 2:51 PM
>
> *To:* ActiveDir@mail.activedir.org
> *Subject:* Re: [ActiveDir] Scripting Issue again
>
>
>
> I thought you just wanted the name of the parent OU
>
>
>
> let mystr = LDAP://OU=foo,ou=bar,dc=cool,dc=com
>
>
>
> so, right(mystr, len(mystr) - 10) should work
>
>
>
> --brian
>
>
>
>
>
>
> On Mon, Mar 24, 2008 at 2:34 PM, Salandra, Justin <jsalandra@transre.com>
> wrote:
>
> Not sure I follow you, I am setting the variable to "LDAP://" &
> objSysInfo.UserName
>
>
>
> Then Taking that string and getting the parent OU Path of the logged in
> account
>
>
>
> Then I take that OU Path and break it into an array where I separate the
> values based on commas
>
>
>
> Then I was originally choosing the second value which is done with the
> Split command (1) but now I want the first value in the array, but that
> value has the LDAP://OU= in from of the name of the OU, I just want the name
> of the OU.
>
>
>
>
>
> Justin A. Salandra
>
> Network Engineer
>
>
> ------------------------------
>
> *From:* ActiveDir-owner@mail.activedir.org [mailto:
> ActiveDir-owner@mail.activedir.org] *On Behalf Of *Brian Desmond
> *Sent:* Monday, March 24, 2008 2:24 PM
> *To:* ActiveDir@mail.activedir.org
> *Subject:* Re: [ActiveDir] Scripting Issue again
>
>
>
> Justin-
>
>
>
> I don't fully follow your sample (which may just be that i'm tired), but,
> get the parent of the user and then read the "ou" property of said object:
>
>
>
> set brian = LDAP://cn=brian,ou=cool people,dc=briandesmond,dc=com.
>
>
>
> set parent = brian.parent
>
>
>
> ou = parent.get("ou")
>
> On Mon, Mar 24, 2008 at 2:19 PM, Salandra, Justin <jsalandra@transre.com>
> wrote:
>
> Hello everyone, I have another scripting issue that I was hoping you could
> help me out with.
>
>
>
> Below is the syntax
>
> -------------------------------------------
>
>
>
> 'Map Network Drives or run commands based on NEW OU Membership
>
>
>
> strUserPathNEW = "LDAP://" & objSysInfo.UserName 'Set the variable
> (strUserPathNEW) to the LDAP string for the person logging on
>
> Set objUserNEW = GetObject(strUserPathNEW) 'Set the variable (objUserNEW)
> to the variable value defined in the variable (strUserPath)
>
>
>
> strOUPathNEW = objUserNEW.Parent 'Set the variable (strOUPathNEW) to the
> Parent Distinguisted Name of the account logging in
>
> arrUserNameNEW = Split(strOUPathNEW, ",") 'Remove the commas the the
> Parent DN and place values in an array
>
> arrOUNEW = Split(arrUserNameNEW(0), ",") 'Select the first value
> (Second value would be a 1) and remove the equal sign and place in an array
>
> strUserOUNEW = arrOUNEW(0) 'Set the variable (strUserOUNEW) to the first
> value of the array (arrOUNEW)
>
>
>
>
>
>
>
> Select Case strUserOUNEW 'Select statement that checks to see if the
> value in strUserOUNEW equals the values below
>
> ----------------------------------------------
>
>
>
>
>
> What I was originally trying to accomplish works great, it breaks apart
> the LDAP string into an array and I used to choose the second value in the
> list which used to be a (1), but now we have moving to a new OU structure
> and I need to be able to pull up the first OU without the LDAP://OU= in
> front of the value. How can I accomplish this?
>
>
>
> Justin A. Salandra
>
> Network Engineer
>
> "IMPORTANT NOTICE: The information in this email
>
> (and any attachments hereto) is confidential and may be
>
> protected by legal privileges and work product immunities.
>
> If you are not the intended recipient, you must not use or
>
> disseminate the information. Receipt by anyone other than the
>
> intended recipient is not a waiver of any attorney-client or work
>
> product privilege. If you have received this email in error, please
>
> immediately notify me by "Reply" command and permanently
>
> delete the original and any copies or printouts thereof. Although
>
> this email and any attachments are believed to be free of any virus
>
> or other defect that might affect any computer system into which it
>
> is received and opened, it is the responsibility of the recipient to
>
> insure that it is virus free and no responsibility is accepted by
>
> Transatlantic Reinsurance Company or its subsidiaries or affiliates
>
> either jointly or severally, for any loss or damage arising in any way
>
> from its use."
>
>
>
>
>
>
>
>
>
>
> --
> Thanks,
> Brian Desmond
> brian@briandesmond.com
>
> c - 312.731.3132
>
> "IMPORTANT NOTICE: The information in this email
>
> (and any attachments hereto) is confidential and may be
>
> protected by legal privileges and work product immunities.
>
> If you are not the intended recipient, you must not use or
>
> disseminate the information. Receipt by anyone other than the
>
> intended recipient is not a waiver of any attorney-client or work
>
> product privilege. If you have received this email in error, please
>
> immediately notify me by "Reply" command and permanently
>
> delete the original and any copies or printouts thereof. Although
>
> this email and any attachments are believed to be free of any virus
>
> or other defect that might affect any computer system into which it
>
> is received and opened, it is the responsibility of the recipient to
>
> insure that it is virus free and no responsibility is accepted by
>
> Transatlantic Reinsurance Company or its subsidiaries or affiliates
>
> either jointly or severally, for any loss or damage arising in any way
>
> from its use."
>
>
>
>
>
>
>
>
>
>
> --
> Thanks,
> Brian Desmond
> brian@briandesmond.com
>
> c - 312.731.3132
>
> "IMPORTANT NOTICE: The information in this email
> (and any attachments hereto) is confidential and may be
> protected by legal privileges and work product immunities.
> If you are not the intended recipient, you must not use or
> disseminate the information. Receipt by anyone other than the
> intended recipient is not a waiver of any attorney-client or work
> product privilege. If you have received this email in error, please
> immediately notify me by "Reply" command and permanently
> delete the original and any copies or printouts thereof. Although
> this email and any attachments are believed to be free of any virus
> or other defect that might affect any computer system into which it
> is received and opened, it is the responsibility of the recipient to
> insure that it is virus free and no responsibility is accepted by
> Transatlantic Reinsurance Company or its subsidiaries or affiliates
> either jointly or severally, for any loss or damage arising in any way
> from its use."
>
>
>
>
>


--
Thanks,
Brian Desmond
brian@briandesmond.com

c - 312.731.3132

You are not authorized to post a reply.
Forums >ActiveDir Mail List Archive >List Archives > [ActiveDir] Scripting Issue again



ActiveForums 3.7
AdventNet Banner
Friends

Friends

Namescape
Members

Members

MembershipMembership:
Latest New UserLatest:rajnet2
New TodayNew Today:1
New YesterdayNew Yesterday:3
User CountOverall:4085

People OnlinePeople Online:
VisitorsVisitors:73
MembersMembers:0
TotalTotal:73

Online NowOnline Now:

Ads

Copyright 2008 ActiveDir.org
Terms Of Use