473,573 Members | 3,281 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

windows2003 active directory problems

Hi people. I have a problem adding users to Win2003 active directory
programatically . When I execute my app throws the following exception:

............... ..The specified directory service attribute or value does not
exist.......... .

Exactly the same code works fine on my win2000 active directory. My app
include the use of the extensionAtribu tes and I'm not sure if the
extensionAttrib utes feature was removed from win2003 Active Directory
Any Idea
Jul 21 '05 #1
9 3704
On Wed, 28 Apr 2004 09:49:22 -0600, "Mario Rodriguez" <mr********@ava ntica.net> wrote:

¤ Hi people. I have a problem adding users to Win2003 active directory
¤ programatically . When I execute my app throws the following exception:
¤
¤ ............... .The specified directory service attribute or value does not
¤ exist.......... .
¤
¤ Exactly the same code works fine on my win2000 active directory. My app
¤ include the use of the extensionAtribu tes and I'm not sure if the
¤ extensionAttrib utes feature was removed from win2003 Active Directory

You may want to identify what attributes you are referring to (code?). I'm assuming you're using
either ADSI or System.Director yServices?
Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)
Jul 21 '05 #2
On Wed, 28 Apr 2004 09:49:22 -0600, "Mario Rodriguez" <mr********@ava ntica.net> wrote:

¤ Hi people. I have a problem adding users to Win2003 active directory
¤ programatically . When I execute my app throws the following exception:
¤
¤ ............... .The specified directory service attribute or value does not
¤ exist.......... .
¤
¤ Exactly the same code works fine on my win2000 active directory. My app
¤ include the use of the extensionAtribu tes and I'm not sure if the
¤ extensionAttrib utes feature was removed from win2003 Active Directory

You may want to identify what attributes you are referring to (code?). I'm assuming you're using
either ADSI or System.Director yServices?
Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)
Jul 21 '05 #3
sure, I'm using System.Director yServices

objRaizActiveDi rectory = new DirectoryEntry( v_strRutaActive Directory);

DirectoryEntry objNuevoUsuario =
objRaizActiveDi rectory.Childre n.Add("CN="+str NombreCompleto, "user");

/* seccion de atributos obligatorios de Active Directory */

invocarPropieda d(ref objNuevoUsuario ,"name",strNomb reCompleto);

invocarPropieda d(ref
objNuevoUsuario ,"givenName",v_ objContenedorUs uario.obtenerNo mbre());

invocarPropieda d(ref
objNuevoUsuario ,"Description", v_objContenedor Usuario.obtener Descripcion());

invocarPropieda d(ref
objNuevoUsuario ,"sAMAccountNam e",v_objContene dorUsuario.obte nerLogin());
/* Seccion de atributos extendidos de Active Directory */

/* Para detalles ver:
http://www.microsoft.com/latam/techn...ws2k/chapt-20/ */
invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute1",v_objCo ntenedorUsuario .obtenerCedula( )
);

/*

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute2",v_objCo ntenedorUsuario .obtenerCorreoE l
ectronico());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute3",v_objCo ntenedorUsuario .obtenerDeparta m
ento());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute4",v_objCo ntenedorUsuario .obtenerEntidad (
));

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute5",v_objCo ntenedorUsuario .obtenerJefeDir e
cto());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute6",v_objCo ntenedorUsuario .obtenerNombre( )
);

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute7",v_objCo ntenedorUsuario .obtenerPrimerA p
ellido());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute8",v_objCo ntenedorUsuario .obtenerPuesto( )
);

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute9",v_objCo ntenedorUsuario .obtenerSegundo A
pellido());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute10",v_objC ontenedorUsuari o.obtenerTelefo n
o());

invocarPropieda d(ref objNuevoUsuario ,"extensionAttr ibute11"," "); // define
el campo de fechaExpiracion

*/

/* se crea el usuario y luego se define el password, de lo contrario Active
Directory tira una exception */

objNuevoUsuario .CommitChanges( );

//objNuevoUsuario .Invoke("SetPas sword", new
object[]{v_objContenedo rUsuario.obtene rClave()});
/* Se habilita el usuario en Active Directory */

objNuevoUsuario .Properties["userAccountCon trol"].Value = 0x200;
//ADS_UF_NORMAL_A CCOUNT

objNuevoUsuario .CommitChanges( );


"Paul Clement" <Us************ ***********@sws pectrum.com> wrote in message
news:3m******** *************** *********@4ax.c om...
On Wed, 28 Apr 2004 09:49:22 -0600, "Mario Rodriguez" <mr********@ava ntica.net> wrote:
¤ Hi people. I have a problem adding users to Win2003 active directory
¤ programatically . When I execute my app throws the following exception:
¤
¤ ............... .The specified directory service attribute or value does not ¤ exist.......... .
¤
¤ Exactly the same code works fine on my win2000 active directory. My app
¤ include the use of the extensionAtribu tes and I'm not sure if the
¤ extensionAttrib utes feature was removed from win2003 Active Directory

You may want to identify what attributes you are referring to (code?). I'm assuming you're using either ADSI or System.Director yServices?
Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)

Jul 21 '05 #4
sure, I'm using System.Director yServices

objRaizActiveDi rectory = new DirectoryEntry( v_strRutaActive Directory);

DirectoryEntry objNuevoUsuario =
objRaizActiveDi rectory.Childre n.Add("CN="+str NombreCompleto, "user");

/* seccion de atributos obligatorios de Active Directory */

invocarPropieda d(ref objNuevoUsuario ,"name",strNomb reCompleto);

invocarPropieda d(ref
objNuevoUsuario ,"givenName",v_ objContenedorUs uario.obtenerNo mbre());

invocarPropieda d(ref
objNuevoUsuario ,"Description", v_objContenedor Usuario.obtener Descripcion());

invocarPropieda d(ref
objNuevoUsuario ,"sAMAccountNam e",v_objContene dorUsuario.obte nerLogin());
/* Seccion de atributos extendidos de Active Directory */

/* Para detalles ver:
http://www.microsoft.com/latam/techn...ws2k/chapt-20/ */
invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute1",v_objCo ntenedorUsuario .obtenerCedula( )
);

/*

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute2",v_objCo ntenedorUsuario .obtenerCorreoE l
ectronico());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute3",v_objCo ntenedorUsuario .obtenerDeparta m
ento());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute4",v_objCo ntenedorUsuario .obtenerEntidad (
));

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute5",v_objCo ntenedorUsuario .obtenerJefeDir e
cto());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute6",v_objCo ntenedorUsuario .obtenerNombre( )
);

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute7",v_objCo ntenedorUsuario .obtenerPrimerA p
ellido());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute8",v_objCo ntenedorUsuario .obtenerPuesto( )
);

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute9",v_objCo ntenedorUsuario .obtenerSegundo A
pellido());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute10",v_objC ontenedorUsuari o.obtenerTelefo n
o());

invocarPropieda d(ref objNuevoUsuario ,"extensionAttr ibute11"," "); // define
el campo de fechaExpiracion

*/

/* se crea el usuario y luego se define el password, de lo contrario Active
Directory tira una exception */

objNuevoUsuario .CommitChanges( );

//objNuevoUsuario .Invoke("SetPas sword", new
object[]{v_objContenedo rUsuario.obtene rClave()});
/* Se habilita el usuario en Active Directory */

objNuevoUsuario .Properties["userAccountCon trol"].Value = 0x200;
//ADS_UF_NORMAL_A CCOUNT

objNuevoUsuario .CommitChanges( );


"Paul Clement" <Us************ ***********@sws pectrum.com> wrote in message
news:3m******** *************** *********@4ax.c om...
On Wed, 28 Apr 2004 09:49:22 -0600, "Mario Rodriguez" <mr********@ava ntica.net> wrote:
¤ Hi people. I have a problem adding users to Win2003 active directory
¤ programatically . When I execute my app throws the following exception:
¤
¤ ............... .The specified directory service attribute or value does not ¤ exist.......... .
¤
¤ Exactly the same code works fine on my win2000 active directory. My app
¤ include the use of the extensionAtribu tes and I'm not sure if the
¤ extensionAttrib utes feature was removed from win2003 Active Directory

You may want to identify what attributes you are referring to (code?). I'm assuming you're using either ADSI or System.Director yServices?
Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)

Jul 21 '05 #5
These are exchange extension attributes, did you migrate a W2K AD to W2K3 AD
or did you upgrade an existing W2K AD domain?
If not, did you migrate Exchange to the new domain, else these attributes
don't exist in the user schema. You can check your schema using adsiedit.msc

Anyway rest assured these attributes still exist, and your problem is not
..NET related.
Willy.
"Mario Rodriguez" <mr********@ava ntica.net> wrote in message
news:ON******** *****@TK2MSFTNG P10.phx.gbl...
sure, I'm using System.Director yServices

objRaizActiveDi rectory = new DirectoryEntry( v_strRutaActive Directory);

DirectoryEntry objNuevoUsuario =
objRaizActiveDi rectory.Childre n.Add("CN="+str NombreCompleto, "user");

/* seccion de atributos obligatorios de Active Directory */

invocarPropieda d(ref objNuevoUsuario ,"name",strNomb reCompleto);

invocarPropieda d(ref
objNuevoUsuario ,"givenName",v_ objContenedorUs uario.obtenerNo mbre());

invocarPropieda d(ref
objNuevoUsuario ,"Description", v_objContenedor Usuario.obtener Descripcion());

invocarPropieda d(ref
objNuevoUsuario ,"sAMAccountNam e",v_objContene dorUsuario.obte nerLogin());
/* Seccion de atributos extendidos de Active Directory */

/* Para detalles ver:
http://www.microsoft.com/latam/techn...ws2k/chapt-20/ */
invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute1",v_objCo ntenedorUsuario .obtenerCedula( )
);

/*

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute2",v_objCo ntenedorUsuario .obtenerCorreoE l
ectronico());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute3",v_objCo ntenedorUsuario .obtenerDeparta m
ento());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute4",v_objCo ntenedorUsuario .obtenerEntidad (
));

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute5",v_objCo ntenedorUsuario .obtenerJefeDir e
cto());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute6",v_objCo ntenedorUsuario .obtenerNombre( )
);

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute7",v_objCo ntenedorUsuario .obtenerPrimerA p
ellido());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute8",v_objCo ntenedorUsuario .obtenerPuesto( )
);

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute9",v_objCo ntenedorUsuario .obtenerSegundo A
pellido());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute10",v_objC ontenedorUsuari o.obtenerTelefo n
o());

invocarPropieda d(ref objNuevoUsuario ,"extensionAttr ibute11"," "); //
define
el campo de fechaExpiracion

*/

/* se crea el usuario y luego se define el password, de lo contrario
Active
Directory tira una exception */

objNuevoUsuario .CommitChanges( );

//objNuevoUsuario .Invoke("SetPas sword", new
object[]{v_objContenedo rUsuario.obtene rClave()});
/* Se habilita el usuario en Active Directory */

objNuevoUsuario .Properties["userAccountCon trol"].Value = 0x200;
//ADS_UF_NORMAL_A CCOUNT

objNuevoUsuario .CommitChanges( );


"Paul Clement" <Us************ ***********@sws pectrum.com> wrote in message
news:3m******** *************** *********@4ax.c om...
On Wed, 28 Apr 2004 09:49:22 -0600, "Mario Rodriguez"

<mr********@ava ntica.net> wrote:

¤ Hi people. I have a problem adding users to Win2003 active directory
¤ programatically . When I execute my app throws the following exception:
¤
¤ ............... .The specified directory service attribute or value does

not
¤ exist.......... .
¤
¤ Exactly the same code works fine on my win2000 active directory. My
app
¤ include the use of the extensionAtribu tes and I'm not sure if the
¤ extensionAttrib utes feature was removed from win2003 Active Directory

You may want to identify what attributes you are referring to (code?).
I'm

assuming you're using
either ADSI or System.Director yServices?
Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)


Jul 21 '05 #6
These are exchange extension attributes, did you migrate a W2K AD to W2K3 AD
or did you upgrade an existing W2K AD domain?
If not, did you migrate Exchange to the new domain, else these attributes
don't exist in the user schema. You can check your schema using adsiedit.msc

Anyway rest assured these attributes still exist, and your problem is not
..NET related.
Willy.
"Mario Rodriguez" <mr********@ava ntica.net> wrote in message
news:ON******** *****@TK2MSFTNG P10.phx.gbl...
sure, I'm using System.Director yServices

objRaizActiveDi rectory = new DirectoryEntry( v_strRutaActive Directory);

DirectoryEntry objNuevoUsuario =
objRaizActiveDi rectory.Childre n.Add("CN="+str NombreCompleto, "user");

/* seccion de atributos obligatorios de Active Directory */

invocarPropieda d(ref objNuevoUsuario ,"name",strNomb reCompleto);

invocarPropieda d(ref
objNuevoUsuario ,"givenName",v_ objContenedorUs uario.obtenerNo mbre());

invocarPropieda d(ref
objNuevoUsuario ,"Description", v_objContenedor Usuario.obtener Descripcion());

invocarPropieda d(ref
objNuevoUsuario ,"sAMAccountNam e",v_objContene dorUsuario.obte nerLogin());
/* Seccion de atributos extendidos de Active Directory */

/* Para detalles ver:
http://www.microsoft.com/latam/techn...ws2k/chapt-20/ */
invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute1",v_objCo ntenedorUsuario .obtenerCedula( )
);

/*

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute2",v_objCo ntenedorUsuario .obtenerCorreoE l
ectronico());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute3",v_objCo ntenedorUsuario .obtenerDeparta m
ento());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute4",v_objCo ntenedorUsuario .obtenerEntidad (
));

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute5",v_objCo ntenedorUsuario .obtenerJefeDir e
cto());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute6",v_objCo ntenedorUsuario .obtenerNombre( )
);

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute7",v_objCo ntenedorUsuario .obtenerPrimerA p
ellido());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute8",v_objCo ntenedorUsuario .obtenerPuesto( )
);

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute9",v_objCo ntenedorUsuario .obtenerSegundo A
pellido());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute10",v_objC ontenedorUsuari o.obtenerTelefo n
o());

invocarPropieda d(ref objNuevoUsuario ,"extensionAttr ibute11"," "); //
define
el campo de fechaExpiracion

*/

/* se crea el usuario y luego se define el password, de lo contrario
Active
Directory tira una exception */

objNuevoUsuario .CommitChanges( );

//objNuevoUsuario .Invoke("SetPas sword", new
object[]{v_objContenedo rUsuario.obtene rClave()});
/* Se habilita el usuario en Active Directory */

objNuevoUsuario .Properties["userAccountCon trol"].Value = 0x200;
//ADS_UF_NORMAL_A CCOUNT

objNuevoUsuario .CommitChanges( );


"Paul Clement" <Us************ ***********@sws pectrum.com> wrote in message
news:3m******** *************** *********@4ax.c om...
On Wed, 28 Apr 2004 09:49:22 -0600, "Mario Rodriguez"

<mr********@ava ntica.net> wrote:

¤ Hi people. I have a problem adding users to Win2003 active directory
¤ programatically . When I execute my app throws the following exception:
¤
¤ ............... .The specified directory service attribute or value does

not
¤ exist.......... .
¤
¤ Exactly the same code works fine on my win2000 active directory. My
app
¤ include the use of the extensionAtribu tes and I'm not sure if the
¤ extensionAttrib utes feature was removed from win2003 Active Directory

You may want to identify what attributes you are referring to (code?).
I'm

assuming you're using
either ADSI or System.Director yServices?
Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)


Jul 21 '05 #7
You are right Willy. In fact, I've two test environments:

1- Win2000, Exchange installed - everything works fine
2- Win2003, without Exchange - tests fails

I just create manually all the extensionAttrib uteN in win2003 (using the
same data than un Win2000)

but now if I include some extensionAttrib ute on my addUser method throws an
exception (If I don't include any extensionAttrib ute everything works fine)

Exception: The requested operation did not satisfy one or more constraints
associated with the class of the object.
Any Idea
"Willy Denoyette [MVP]" <wi************ *@pandora.be> wrote in message
news:#3******** ******@tk2msftn gp13.phx.gbl...
These are exchange extension attributes, did you migrate a W2K AD to W2K3 AD or did you upgrade an existing W2K AD domain?
If not, did you migrate Exchange to the new domain, else these attributes
don't exist in the user schema. You can check your schema using adsiedit.msc
Anyway rest assured these attributes still exist, and your problem is not
.NET related.
Willy.
"Mario Rodriguez" <mr********@ava ntica.net> wrote in message
news:ON******** *****@TK2MSFTNG P10.phx.gbl...
sure, I'm using System.Director yServices

objRaizActiveDi rectory = new DirectoryEntry( v_strRutaActive Directory);

DirectoryEntry objNuevoUsuario =
objRaizActiveDi rectory.Childre n.Add("CN="+str NombreCompleto, "user");

/* seccion de atributos obligatorios de Active Directory */

invocarPropieda d(ref objNuevoUsuario ,"name",strNomb reCompleto);

invocarPropieda d(ref
objNuevoUsuario ,"givenName",v_ objContenedorUs uario.obtenerNo mbre());

invocarPropieda d(ref
objNuevoUsuario ,"Description", v_objContenedor Usuario.obtener Descripcion());
invocarPropieda d(ref
objNuevoUsuario ,"sAMAccountNam e",v_objContene dorUsuario.obte nerLogin());
/* Seccion de atributos extendidos de Active Directory */

/* Para detalles ver:
http://www.microsoft.com/latam/techn...ws2k/chapt-20/ */
invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute1",v_objCo ntenedorUsuario .obtenerCedula( ) );

/*

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute2",v_objCo ntenedorUsuario .obtenerCorreoE l ectronico());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute3",v_objCo ntenedorUsuario .obtenerDeparta m ento());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute4",v_objCo ntenedorUsuario .obtenerEntidad ( ));

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute5",v_objCo ntenedorUsuario .obtenerJefeDir e cto());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute6",v_objCo ntenedorUsuario .obtenerNombre( ) );

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute7",v_objCo ntenedorUsuario .obtenerPrimerA p ellido());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute8",v_objCo ntenedorUsuario .obtenerPuesto( ) );

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute9",v_objCo ntenedorUsuario .obtenerSegundo A pellido());

invocarPropieda d(ref
objNuevoUsuario ,"extensionAttr ibute10",v_objC ontenedorUsuari o.obtenerTelefo n o());

invocarPropieda d(ref objNuevoUsuario ,"extensionAttr ibute11"," "); //
define
el campo de fechaExpiracion

*/

/* se crea el usuario y luego se define el password, de lo contrario
Active
Directory tira una exception */

objNuevoUsuario .CommitChanges( );

//objNuevoUsuario .Invoke("SetPas sword", new
object[]{v_objContenedo rUsuario.obtene rClave()});
/* Se habilita el usuario en Active Directory */

objNuevoUsuario .Properties["userAccountCon trol"].Value = 0x200;
//ADS_UF_NORMAL_A CCOUNT

objNuevoUsuario .CommitChanges( );


"Paul Clement" <Us************ ***********@sws pectrum.com> wrote in message news:3m******** *************** *********@4ax.c om...
On Wed, 28 Apr 2004 09:49:22 -0600, "Mario Rodriguez"

<mr********@ava ntica.net> wrote:

¤ Hi people. I have a problem adding users to Win2003 active directory
¤ programatically . When I execute my app throws the following exception: ¤
¤ ............... .The specified directory service attribute or value
does not
¤ exist.......... .
¤
¤ Exactly the same code works fine on my win2000 active directory. My
app
¤ include the use of the extensionAtribu tes and I'm not sure if the
¤ extensionAttrib utes feature was removed from win2003 Active Directory

You may want to identify what attributes you are referring to (code?).
I'm

assuming you're using
either ADSI or System.Director yServices?
Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)



Jul 21 '05 #8
On Wed, 28 Apr 2004 14:16:18 -0600, "Mario Rodriguez" <mr********@ava ntica.net> wrote:

¤ You are right Willy. In fact, I've two test environments:
¤
¤ 1- Win2000, Exchange installed - everything works fine
¤ 2- Win2003, without Exchange - tests fails
¤
¤ I just create manually all the extensionAttrib uteN in win2003 (using the
¤ same data than un Win2000)
¤
¤ but now if I include some extensionAttrib ute on my addUser method throws an
¤ exception (If I don't include any extensionAttrib ute everything works fine)
¤
¤ Exception: The requested operation did not satisfy one or more constraints
¤ associated with the class of the object.
¤

Can you try adding one extension attribute at a time until you trigger the error? This will allow
you identify the attribute in question (if it isn't all of them).

The error seems to indicate that there is a configuration or data related issue. It could be a data
validation issue or possibly a relationship between attributes that is being violated.
Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)
Jul 21 '05 #9
On Wed, 28 Apr 2004 14:16:18 -0600, "Mario Rodriguez" <mr********@ava ntica.net> wrote:

¤ You are right Willy. In fact, I've two test environments:
¤
¤ 1- Win2000, Exchange installed - everything works fine
¤ 2- Win2003, without Exchange - tests fails
¤
¤ I just create manually all the extensionAttrib uteN in win2003 (using the
¤ same data than un Win2000)
¤
¤ but now if I include some extensionAttrib ute on my addUser method throws an
¤ exception (If I don't include any extensionAttrib ute everything works fine)
¤
¤ Exception: The requested operation did not satisfy one or more constraints
¤ associated with the class of the object.
¤

Can you try adding one extension attribute at a time until you trigger the error? This will allow
you identify the attribute in question (if it isn't all of them).

The error seems to indicate that there is a configuration or data related issue. It could be a data
validation issue or possibly a relationship between attributes that is being violated.
Paul ~~~ pc******@amerit ech.net
Microsoft MVP (Visual Basic)
Jul 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
15182
by: James Allan | last post by:
Hello -- I'm trying to get SQL Server 2000 on a Windows 2000 Server to be able to query an Active Directory. We've got two domain servers one Win2000 and one Win2003. However, I'm having problems: I've run the following query to setup the linked server: sp_addlinkedserver 'ADSI', 'Active Directory Service Interfaces', 'ADSDSOObject',...
1
3284
by: Amadelle | last post by:
Hi all, I am so desparately in need of some guidance! After two days of struggling I still can't connect to the Active Directory server. I have used so many different ways and so many different string paths and I still don't have a successful connection. Things I have tried: Using Directory Searcher: DirectorySearcher ds = new...
0
2004
by: RTT | last post by:
here is my current situation. I develop a program on my computer's localhost. From there i contact Active directory succesfull using a connectionstring like: LDAP://OU=BE,OU=SE,DC=eu,DC=aagp,DC=corp. This works fine. My computer is in and OU under the BE folder, and so is my User. I have no problems connecting to the Active Directory. ...
9
388
by: Mario Rodriguez | last post by:
Hi people. I have a problem adding users to Win2003 active directory programatically. When I execute my app throws the following exception: .................The specified directory service attribute or value does not exist........... Exactly the same code works fine on my win2000 active directory. My app include the use of the...
8
1630
by: cgd | last post by:
windows2003+sp2 i use the ie7 download a file, i want to know where is the temp fold? thanks
0
2865
JamieHowarth0
by: JamieHowarth0 | last post by:
Hi guys, Up until 3 weeks ago I was running a Microsoft Windows Server 2003 R2 Enterprise Edition Beta from home on an ADSL connection with dynamic IP absolutely fine - until the beta decided to expire. I have since upgraded to a valid licensed copy but because the "upgrade" option wasn't given to me I had to do a clean install - so format and...
1
4049
by: Tim | last post by:
Folks, I have 3 loosely linked problems which I am would appreciate feedback on. 1). T-Sql and Active directory roles. We want to be able to control access to data within a table based on a role within Active directory. For example, Region1 has 4 sites, Region 2 has 3 sites and so forth. All the sites are held in a single database table.
0
1346
by: fabiomoggi | last post by:
Hello Guys, I am developing a web application to manage Active Directory resources, and one of my tasks is to map Organizational Units hierarchy into a SQL Server database. Let's suppose that I have the following OU hierarchy in my Active Direcoty: 1. NewYork -----1.1 HR_Department ----------1.1.1 Computers ----------1.1.2 Users -----1.2...
0
2401
by: Zetten | last post by:
I'm trying to develop a page which will grab a few details for the currently logged-in Windows user from the Active Directory controller. I can get the full name of the user from their username without any problems. What I can't do is find out which groups the user belongs to. The end result will hopefully be a method to ascertain whether...
0
7660
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8163
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8022
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6346
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5252
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3692
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3681
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2163
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1254
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.