Ask a Question related to ASP.NET Security, Design and Development.
-
Adding OU
Hi
How can we add OU to a directory? TIA details.....
I have tried using the following code but getting exception error
Exception: The specified directory service attribute or value does not
exist.
-------------
str_path = "DC=mydomain,DC=com";
newOUName = "OU=anotherOU";
DirectoryEntry myDir = new DirectoryEntry(str_path, uName,
uPwd);
DirectoryEntry newOU = myDir.Children.Add(newOUName,
"Organizational-Unit");
newOU.CommitChanges();
----------
--
Guest
-
Adding a .pl to @INC
Hi I am a newcomer to Perl, am trying to run a Perl file which calls a function from another Perl file. But while running it is complaining that... -
DataGrid - Adding labels: and adding data to cells
I am just getting started with flash scripting. My downfall is trying to get the dynamic output to display in flash. I tried using the list... -
Need help adding !!
i am trying to use lingo to add 1 to its value - on mousedown, which is easy enough, but i have for example '00045' and when i add 1 the number then... -
Adding points to a database ( adding / subtrating numeric values)
HI all, I have build a user database that comes with user points for browsing private section of my site. I would like to know what is the... -
adding to db
I bought 3 books and spent weeks trying to add a record to my database, but haven't figured it out??? I've tried both sql and addnew method, but to... -
Re: Adding OU
Hi
I get a bit progress on this, now I am getting naming violation with the
following code
newOUName=DN="OU=anotherOU,DC=mydomain, DC=com";
DirectoryEntry myDir = new DirectoryEntry(str_path, uName,
uPwd);
DirectoryEntry newOU = myDir.Children.Add(newOUName,
"organizationalUnit");
newOU.CommitChanges();
Any idea, please?
TIA
<dl> wrote in message news:OP4OK%23SVFHA.3540@TK2MSFTNGP15.phx.gbl...> Hi
> How can we add OU to a directory? TIA details.....
>
> I have tried using the following code but getting exception error
>
> Exception: The specified directory service attribute or value does not
> exist.
>
> -------------
> str_path = "DC=mydomain,DC=com";
> newOUName = "OU=anotherOU";
> DirectoryEntry myDir = new DirectoryEntry(str_path, uName,
> uPwd);
> DirectoryEntry newOU = myDir.Children.Add(newOUName,
> "Organizational-Unit");
> newOU.CommitChanges();
>
> ----------
>
> --
>
>
>
Guest
-
Re: Adding OU
Sorry, I got it. --> newOUName doesn't need to be a dn, just
ou="something" -->
<dl> wrote in message news:%233g13NTVFHA.3240@TK2MSFTNGP10.phx.gbl...uName,> Hi
> I get a bit progress on this, now I am getting naming violation with the
> following code
>
> newOUName=DN="OU=anotherOU,DC=mydomain, DC=com";
> DirectoryEntry myDir = new DirectoryEntry(str_path, uName,
> uPwd);
> DirectoryEntry newOU = myDir.Children.Add(newOUName,
> "organizationalUnit");
> newOU.CommitChanges();
>
> Any idea, please?
> TIA
>
> <dl> wrote in message news:OP4OK%23SVFHA.3540@TK2MSFTNGP15.phx.gbl...> > Hi
> > How can we add OU to a directory? TIA details.....
> >
> > I have tried using the following code but getting exception error
> >
> > Exception: The specified directory service attribute or value does not
> > exist.
> >
> > -------------
> > str_path = "DC=mydomain,DC=com";
> > newOUName = "OU=anotherOU";
> > DirectoryEntry myDir = new DirectoryEntry(str_path,>> > uPwd);
> > DirectoryEntry newOU = myDir.Children.Add(newOUName,
> > "Organizational-Unit");
> > newOU.CommitChanges();
> >
> > ----------
> >
> > --
> >
> >
> >
>
Guest
-
Joe Kaplan \(MVP - ADSI\) #4
Re: Adding OU
Right, it is an RDN value, or relative distinguished name. Sounds like you
got it now.
Joe K.
<dl> wrote in message news:uUglUSTVFHA.3696@TK2MSFTNGP10.phx.gbl...> Sorry, I got it. --> newOUName doesn't need to be a dn, just
> ou="something" -->
>
> <dl> wrote in message news:%233g13NTVFHA.3240@TK2MSFTNGP10.phx.gbl...> uName,>> Hi
>> I get a bit progress on this, now I am getting naming violation with the
>> following code
>>
>> newOUName=DN="OU=anotherOU,DC=mydomain, DC=com";
>> DirectoryEntry myDir = new DirectoryEntry(str_path,
>> uName,
>> uPwd);
>> DirectoryEntry newOU = myDir.Children.Add(newOUName,
>> "organizationalUnit");
>> newOU.CommitChanges();
>>
>> Any idea, please?
>> TIA
>>
>> <dl> wrote in message news:OP4OK%23SVFHA.3540@TK2MSFTNGP15.phx.gbl...>> > Hi
>> > How can we add OU to a directory? TIA details.....
>> >
>> > I have tried using the following code but getting exception error
>> >
>> > Exception: The specified directory service attribute or value does not
>> > exist.
>> >
>> > -------------
>> > str_path = "DC=mydomain,DC=com";
>> > newOUName = "OU=anotherOU";
>> > DirectoryEntry myDir = new DirectoryEntry(str_path,>>>>> > uPwd);
>> > DirectoryEntry newOU = myDir.Children.Add(newOUName,
>> > "Organizational-Unit");
>> > newOU.CommitChanges();
>> >
>> > ----------
>> >
>> > --
>> >
>> >
>> >
>>
>
Joe Kaplan \(MVP - ADSI\) Guest
-
Re: Adding OU
Yes. Thanks Joe.
"Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
in message news:%23qp4q0WVFHA.3432@TK2MSFTNGP10.phx.gbl...you> Right, it is an RDN value, or relative distinguished name. Sounds likethe> got it now.
>
> Joe K.
>
> <dl> wrote in message news:uUglUSTVFHA.3696@TK2MSFTNGP10.phx.gbl...> > Sorry, I got it. --> newOUName doesn't need to be a dn, just
> > ou="something" -->
> >
> > <dl> wrote in message news:%233g13NTVFHA.3240@TK2MSFTNGP10.phx.gbl...> >> Hi
> >> I get a bit progress on this, now I am getting naming violation withnot> >> following code
> >>
> >> newOUName=DN="OU=anotherOU,DC=mydomain, DC=com";
> >> DirectoryEntry myDir = new DirectoryEntry(str_path,
> >> uName,
> >> uPwd);
> >> DirectoryEntry newOU = myDir.Children.Add(newOUName,
> >> "organizationalUnit");
> >> newOU.CommitChanges();
> >>
> >> Any idea, please?
> >> TIA
> >>
> >> <dl> wrote in message news:OP4OK%23SVFHA.3540@TK2MSFTNGP15.phx.gbl...
> >> > Hi
> >> > How can we add OU to a directory? TIA details.....
> >> >
> >> > I have tried using the following code but getting exception error
> >> >
> >> > Exception: The specified directory service attribute or value does>> > uName,> >> > exist.
> >> >
> >> > -------------
> >> > str_path = "DC=mydomain,DC=com";
> >> > newOUName = "OU=anotherOU";
> >> > DirectoryEntry myDir = new DirectoryEntry(str_path,> >> >> > uPwd);
> >> > DirectoryEntry newOU = myDir.Children.Add(newOUName,
> >> > "Organizational-Unit");
> >> > newOU.CommitChanges();
> >> >
> >> > ----------
> >> >
> >> > --
> >> >
> >> >
> >> >
> >>
> >>
> >
>
Guest



Reply With Quote

