locked
naming violation in adding new ou RRS feed

  • Question

  • User-737517480 posted

    always get captioned error but don't know why.  any help

            Try

               Dim de As New DirectoryEntry("LDAP://170.22.13.247" & _
              "/dc=pcihl,dc=com", "cn=Manager,dc=pcihl,dc=com", "secret", AuthenticationTypes.ServerBind)
                Dim newGroup As DirectoryEntry = de.Children.Add("OU=foo", "organizationalUnit")

               newGroup.CommitChanges()

            Catch e As Exception

                Dim COMEx As System.Runtime.InteropServices.COMException = CType(e, System.Runtime.InteropServices.COMException)
                MsgBox(COMEx.Message)

            End Try

    Wednesday, May 17, 2006 9:51 PM

All replies

  • User1354132231 posted
    I replied to you on the other site.
    Friday, May 19, 2006 1:23 PM