Re: [Samba] Samba4 - create a new auxiliary classe in AD

2012-05-23 Thread Hervé Hénoch

Hello,

Thank for the warning.

My problem is now the following : I've created a auxiliary class with 
optional attribute following this explanation :


http://semifershome.free.fr/semifer/index.php?2008/02/12/42-etendre-le-schema-active-directory-classes-attributs-et-display-specifiers 
(1)


I've created a suitable script for me in order to change my optional 
attribute named 'iscApplis' :


-
Dim args
Dim user
Dim temp

Set args = WScript.Arguments
Set user = GetObject(args(0))

temp = InputBox(Applis :   user.iscApplis)
if temp then user.put iscApplis, temp
user.SetInfo

Set user = Nothing
Set args = Nothing
Set temp = Nothing

Wscript.quit
-

Then I go on a user, right-click and clik on iscApplis (menu label 
created by following (1))  in order to change the attribute iscApplis 
and I've got message :


 this object does not support this property ou method.

If I replace iscApplis by carLicense by example no problem !!!

Samba4 problem ?




Le 23/05/2012 04:21, Matthieu Patou a écrit :

On 05/22/2012 06:29 AM, Michael Wood wrote:

On 22 May 2012 11:49, Hervé Hénochh.hen...@isc84.org  wrote:

I'm using the  4.0.0alpha21-GIT-1d53e57  version.

I've tried your proposal and it seems that it works ... thank you.

It might not work correctly.  I think schema modification has been
disabled by default because it can break things.
Well we used to not generate some attributes that are critical for the 
schema on certain object (ie. oMSyntax on attribute who have a DN 
syntax). I made several patches lately for this should work much 
better but as general safety measure we keep it still disabled a bit 
like you've been warned.


Matthieu


--
Hervé Hénoch
Responsable informatique
Institut Sainte Catherine
1750, chemin du Lavarin, 84000 Avignon
Téléphone : 04.90.27.57.44
Messagerie : h.hen...@isc84.org


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba4 - create a new auxiliary classe in AD

2012-05-23 Thread Matthieu Patou

On 05/23/2012 01:22 AM, Hervé Hénoch wrote:

Hello,

Thank for the warning.

My problem is now the following : I've created a auxiliary class with 
optional attribute following this explanation :


http://semifershome.free.fr/semifer/index.php?2008/02/12/42-etendre-le-schema-active-directory-classes-attributs-et-display-specifiers 
(1)

Are you sure you have linked your auxiliary class to the class user ?

Matthieu


--
Matthieu Patou
Samba Team
http://samba.org

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba4 - create a new auxiliary classe in AD

2012-05-23 Thread Hervé Hénoch

yes i have !!!

i've even tested by linking the optional attribute alone with the class 
user !!!


so ?

Le 23/05/2012 10:39, Matthieu Patou a écrit :

On 05/23/2012 01:22 AM, Hervé Hénoch wrote:

Hello,

Thank for the warning.

My problem is now the following : I've created a auxiliary class with 
optional attribute following this explanation :


http://semifershome.free.fr/semifer/index.php?2008/02/12/42-etendre-le-schema-active-directory-classes-attributs-et-display-specifiers 
(1)

Are you sure you have linked your auxiliary class to the class user ?

Matthieu




--
Hervé Hénoch
Responsable informatique
Institut Sainte Catherine
1750, chemin du Lavarin, 84000 Avignon
Téléphone : 04.90.27.57.44
Messagerie : h.hen...@isc84.org


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba4 - create a new auxiliary classe in AD

2012-05-23 Thread Hervé Hénoch
Precision : i've added the attribute by ldapmodify and it worked But 
the script continue to fail.


Le 23/05/2012 10:46, Hervé Hénoch a écrit :

yes i have !!!

i've even tested by linking the optional attribute alone with the 
class user !!!


so ?

Le 23/05/2012 10:39, Matthieu Patou a écrit :

On 05/23/2012 01:22 AM, Hervé Hénoch wrote:

Hello,

Thank for the warning.

My problem is now the following : I've created a auxiliary class 
with optional attribute following this explanation :


http://semifershome.free.fr/semifer/index.php?2008/02/12/42-etendre-le-schema-active-directory-classes-attributs-et-display-specifiers 
(1)

Are you sure you have linked your auxiliary class to the class user ?

Matthieu






--
Hervé Hénoch
Responsable informatique
Institut Sainte Catherine
1750, chemin du Lavarin, 84000 Avignon
Téléphone : 04.90.27.57.44
Messagerie : h.hen...@isc84.org


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba4 - create a new auxiliary classe in AD

2012-05-23 Thread Matthieu Patou

On 05/23/2012 02:21 AM, Hervé Hénoch wrote:
Precision : i've added the attribute by ldapmodify and it worked 
But the script continue to fail.

Ok it means that storing the attribute works in some case.

We just have to figure why it didn't work in all case.


Le 23/05/2012 10:46, Hervé Hénoch a écrit :

yes i have !!!

i've even tested by linking the optional attribute alone with the 
class user !!!


so ?

Le 23/05/2012 10:39, Matthieu Patou a écrit :

On 05/23/2012 01:22 AM, Hervé Hénoch wrote:

Hello,

Thank for the warning.

My problem is now the following : I've created a auxiliary class 
with optional attribute following this explanation :


http://semifershome.free.fr/semifer/index.php?2008/02/12/42-etendre-le-schema-active-directory-classes-attributs-et-display-specifiers 
(1)

Are you sure you have linked your auxiliary class to the class user ?

Matthieu









--
Matthieu Patou
Samba Team
http://samba.org

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba4 - create a new auxiliary classe in AD

2012-05-22 Thread Hervé Hénoch

Hello

I've migrated from Samba3 to Samba4 using this howto : 
http://wiki.samba.org/index.php/Samba4/samba3upgrade/HOWTO : ok ! great !


Now I want to create a new auxiliary classe in AD by using mmc - Schéma 
Active Directory.


I've generated the object OID using the script : 
http://www.microsoft.com/technet/scriptcenter/scripts/ad/domains/addmvb03.mspx?mfr=true


I've added to the root OID  : root OID.1.1

But I have the following error : Server doesn't wish to process this 
request (in reality my message is in french le serveur ne souhaite pas 
traiter la requête)


So how can I modify AD schema with Samba4 ?

Thanks

--
Hervé Hénoch
Responsable informatique
Institut Sainte Catherine
1750, chemin du Lavarin, 84000 Avignon
Téléphone : 04.90.27.57.44
Messagerie : h.hen...@isc84.org


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba4 - create a new auxiliary classe in AD

2012-05-22 Thread Hervé Hénoch

I'm using the  4.0.0alpha21-GIT-1d53e57  version.

I've tried your proposal and it seems that it works ... thank you.

Another question :  my fonctionnal level (domain and forest) is 2003 
can I grow it to 2008R2 ?


Regards

Le 22/05/2012 11:42, Lukasz Zalewski a écrit :

On 22/05/12 07:37, Hervé Hénoch wrote:

Hello

I've migrated from Samba3 to Samba4 using this howto :
http://wiki.samba.org/index.php/Samba4/samba3upgrade/HOWTO : ok ! 
great !


Now I want to create a new auxiliary classe in AD by using mmc - Schéma
Active Directory.

I've generated the object OID using the script :
http://www.microsoft.com/technet/scriptcenter/scripts/ad/domains/addmvb03.mspx?mfr=true 



Hi
Which version of Samba 4 are you using?
In later versions you have to explicitly allow schema modifications by 
adding the following to smb.conf

dsdb:schema update allowed = yes

HTH

L



--
Hervé Hénoch
Responsable informatique
Institut Sainte Catherine
1750, chemin du Lavarin, 84000 Avignon
Téléphone : 04.90.27.57.44
Messagerie : h.hen...@isc84.org


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba4 - create a new auxiliary classe in AD

2012-05-22 Thread Lukasz Zalewski

On 22/05/12 10:49, Hervé Hénoch wrote:

I'm using the 4.0.0alpha21-GIT-1d53e57 version.

I've tried your proposal and it seems that it works ... thank you.

Another question : my fonctionnal level (domain and forest) is 2003
can I grow it to 2008R2 ?

Hi,
samba-tool allows you to raise the functional level (for both the domain 
and the forest - check the options), i.e.

./samba-tool domain level
Usage: samba-tool domain level (show|raise options) [options]

But i have not used it myself.

L
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba4 - create a new auxiliary classe in AD

2012-05-22 Thread Lukasz Zalewski

On 22/05/12 07:37, Hervé Hénoch wrote:

Hello

I've migrated from Samba3 to Samba4 using this howto :
http://wiki.samba.org/index.php/Samba4/samba3upgrade/HOWTO : ok ! great !

Now I want to create a new auxiliary classe in AD by using mmc - Schéma
Active Directory.

I've generated the object OID using the script :
http://www.microsoft.com/technet/scriptcenter/scripts/ad/domains/addmvb03.mspx?mfr=true


Hi
Which version of Samba 4 are you using?
In later versions you have to explicitly allow schema modifications by 
adding the following to smb.conf

dsdb:schema update allowed = yes

HTH

L
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba4 - create a new auxiliary classe in AD

2012-05-22 Thread Hervé Hénoch
I've tried to raise the level of both the domain and the forest with the 
command (with a functional samba4 test server) :


samba-tool domain level raise  --forest-level=2008_R2  
--domain-level=2008_R2


And everything worked for me :

Domain function level changed!
Forest function level changed!
All changes applied successfully!

Thank you very much.

Le 22/05/2012 11:57, Lukasz Zalewski a écrit :

On 22/05/12 10:49, Hervé Hénoch wrote:

I'm using the 4.0.0alpha21-GIT-1d53e57 version.

I've tried your proposal and it seems that it works ... thank you.

Another question : my fonctionnal level (domain and forest) is 2003
can I grow it to 2008R2 ?

Hi,
samba-tool allows you to raise the functional level (for both the 
domain and the forest - check the options), i.e.

./samba-tool domain level
Usage: samba-tool domain level (show|raise options) [options]

But i have not used it myself.

L



--
Hervé Hénoch
Responsable informatique
Institut Sainte Catherine
1750, chemin du Lavarin, 84000 Avignon
Téléphone : 04.90.27.57.44
Messagerie : h.hen...@isc84.org


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba4 - create a new auxiliary classe in AD

2012-05-22 Thread Michael Wood
On 22 May 2012 11:49, Hervé Hénoch h.hen...@isc84.org wrote:
 I'm using the  4.0.0alpha21-GIT-1d53e57  version.

 I've tried your proposal and it seems that it works ... thank you.

It might not work correctly.  I think schema modification has been
disabled by default because it can break things.

 Another question :  my fonctionnal level (domain and forest) is 2003 can I
 grow it to 2008R2 ?

 Regards

 Le 22/05/2012 11:42, Lukasz Zalewski a écrit :

 On 22/05/12 07:37, Hervé Hénoch wrote:

 Hello

 I've migrated from Samba3 to Samba4 using this howto :
 http://wiki.samba.org/index.php/Samba4/samba3upgrade/HOWTO : ok ! great !

 Now I want to create a new auxiliary classe in AD by using mmc - Schéma
 Active Directory.

 I've generated the object OID using the script :

 http://www.microsoft.com/technet/scriptcenter/scripts/ad/domains/addmvb03.mspx?mfr=true


 Hi
 Which version of Samba 4 are you using?
 In later versions you have to explicitly allow schema modifications by
 adding the following to smb.conf
 dsdb:schema update allowed = yes

 HTH

 L


 --
 Hervé Hénoch
 Responsable informatique
 Institut Sainte Catherine
 1750, chemin du Lavarin, 84000 Avignon
 Téléphone : 04.90.27.57.44
 Messagerie : h.hen...@isc84.org

-- 
Michael Wood esiot...@gmail.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba4 - create a new auxiliary classe in AD

2012-05-22 Thread Matthieu Patou

On 05/22/2012 06:29 AM, Michael Wood wrote:

On 22 May 2012 11:49, Hervé Hénochh.hen...@isc84.org  wrote:

I'm using the  4.0.0alpha21-GIT-1d53e57  version.

I've tried your proposal and it seems that it works ... thank you.

It might not work correctly.  I think schema modification has been
disabled by default because it can break things.
Well we used to not generate some attributes that are critical for the 
schema on certain object (ie. oMSyntax on attribute who have a DN 
syntax). I made several patches lately for this should work much better 
but as general safety measure we keep it still disabled a bit like 
you've been warned.


Matthieu
--
Matthieu Patou
Samba Team
http://samba.org

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba