![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Binding to DL I am binding to a Universal DL that is preceeded by a slash ("/") and receiving the error: -2147463168. If I change the group to a group without a slash, I can bind without error. Here is a copy of my bind statement. DIST_GROUP = "CN=/RE RAG Group Name,OU=My-OU,DC=My-Domain,DC=OurForest,DC=net" Set objGroup = GetObject _ ("LDAP://" & DIST_GROUP) Is anyone familiar with a dislike on the part of vbScript with the slash we preceed certain DLs using? Thanks. Bart |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Binding to DL Bart wrote: =>I am binding to a Universal DL that is preceeded by a slash ("/") and Quote: > receiving the error: -2147463168. > > If I change the group to a group without a slash, I can bind without > error. > > Here is a copy of my bind statement. > > DIST_GROUP = "CN=/RE RAG Group > Name,OU=My-OU,DC=My-Domain,DC=OurForest,DC=net" > > Set objGroup = GetObject _ > ("LDAP://" & DIST_GROUP) > > Is anyone familiar with a dislike on the part of vbScript with the slash > we preceed certain DLs using? > > Thanks. with the backslash escape character. For example: DIST_GROUP = "CN=\/RE RAG Group Name,OU=My-OU,DC=My-Domain,DC=OurForest,DC=net" See this link for details: http://www.rlmueller.net/CharactersEscaped.htm Depending on your code, you may need to use the Replace function. For example: DIST_GROUP = Replace(DIST_GROUP, "/", "\/") -- Richard Mueller MVP Directory Services Hilltop Lab - http://www.rlmueller.net -- |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Binding to DL "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxx> wrote in message news:OHmcGfppJHA.3896@xxxxxx Quote: > Bart wrote: > > =>I am binding to a Universal DL that is preceeded by a slash ("/") and Quote: >> receiving the error: -2147463168. >> >> If I change the group to a group without a slash, I can bind without >> error. >> >> Here is a copy of my bind statement. >> >> DIST_GROUP = "CN=/RE RAG Group >> Name,OU=My-OU,DC=My-Domain,DC=OurForest,DC=net" >> >> Set objGroup = GetObject _ >> ("LDAP://" & DIST_GROUP) >> >> Is anyone familiar with a dislike on the part of vbScript with the slash >> we preceed certain DLs using? >> >> Thanks. > If you use ADSI (which VBScript does), the slash character must be escaped > with the backslash escape character. For example: > > DIST_GROUP = "CN=\/RE RAG Group > Name,OU=My-OU,DC=My-Domain,DC=OurForest,DC=net" > > See this link for details: > > http://www.rlmueller.net/CharactersEscaped.htm > > Depending on your code, you may need to use the Replace function. For > example: > > DIST_GROUP = Replace(DIST_GROUP, "/", "\/") > > -- > Richard Mueller > MVP Directory Services > Hilltop Lab - http://www.rlmueller.net > -- > > Bart Perrier |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| VPN and binding order. | Vista networking & sharing | |||