Re: ldifde import syntax

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: steve (steve_at_discussions.microsoft.com)
Date: 08/27/04


Date: Fri, 27 Aug 2004 07:29:01 -0700

Found it! in Microsoft Knowledge Base Article - 313823

there needed to be a hyphen at the end of the input file.

"Gordon Ryan" wrote:

> Ignoring your issues for doing this,
>
> the clue for what you have missed is
>
> > add error on line 1: object class violation
> > the server side error is "the objec class attribute must be specified"
> >
>
> You are telling AD to create an object, but have not told AD what TYPE of
> object you want.
>
> have a look at
>
> http://support.microsoft.com/default.aspx?scid=kb;en-us;237677
>
> A better way to do this would be to use Vbscript.
>
> gordon
>
> "steve" <steve@discussions.microsoft.com> wrote in message
> news:BE55B308-796B-4354-8BE8-4ACD61F32979@microsoft.com...
> >I am trying to import a user automatically using ldifde.
> > Into my active directory.eliznc.local.mybusiness.users.sbsuers
> >
> > My newuser.ldf file:
> > dn: CN=Guy Thoms,OU=SBSUsers,OU=Users,OU=MyBusiness,DC=eliznc,DC=local
> > changetype: add
> > cn: Guy Thoms
> > sn: Thomas
> > givenName: Guy
> >
> > my import command line:
> > ldifde -i -f newuser.ldf -s pdc
> >
> >
> > When I run, it returns:
> > add error on line 1: object class violation
> > the server side error is "the objec class attribute must be specified"
> >
> >
>
>
>