Zentyal Forum, Linux Small Business Server

Zentyal Server => Directory and Authentication => Topic started by: cleitonme on November 27, 2020, 01:13:51 pm

Title: error syslog failed to load attribute or class definition
Post by: cleitonme on November 27, 2020, 01:13:51 pm
does anyone know what this error means and how to fix

Nov 27 09:12:21 servidor smbd_audit:   ldb: dsdb_schema_from_db() failed: 19:Constraint violation: dsdb_schema load failed: dsdb_load_ldb_results_into_schema: failed to load attribute or class definition: CN=Remote-Storage-Service-Point,CN=Schema,CN=Configuration,DC=foco,DC=local:WERR_INVALID_PARAMETER
Nov 27 09:12:21 servidor smbd_audit: [2020/11/27 09:12:21.068138,  0] ../source4/dsdb/schema/schema_init.c:916(dsdb_load_ldb_results_into_schema)
Nov 27 09:12:21 servidor smbd_audit:   ../source4/dsdb/schema/schema_init.c:916: dsdb_load_ldb_results_into_schema: failed to load attribute or class definition: CN=Remote-Storage-Service-Point,CN=Schema,CN=Configuration,DC=foco,DC=local:WERR_INVALID_PARAMETER
Nov 27 09:12:21 servidor smbd_audit: [2020/11/27 09:12:21.073667,  0] ../lib/ldb-samba/ldb_wrap.c:77(ldb_wrap_debug)
Nov 27 09:12:21 servidor smbd_audit:   ldb: dsdb_schema_from_db() failed: 19:Constraint violation: dsdb_schema load failed: dsdb_load_ldb_results_into_schema: failed to load attribute or class definition: CN=Remote-Storage-Service-Point,CN=Schema,CN=Configuration,DC=foco,DC=local:WERR_INVALID_PARAMETER
Nov 27 09:12:21 servidor smbd_audit: [2020/11/27 09:12:21.131253,  0] ../source4/dsdb/schema/schema_init.c:916(dsdb_load_ldb_results_into_schema)
Nov 27 09:12:21 servidor smbd_audit:   ../source4/dsdb/schema/schema_init.c:916: dsdb_load_ldb_results_into_schema: failed to load attribute or class definition: CN=Remote-Storage-Service-Point,CN=Schema,CN=Configuration,DC=foco,DC=local:WERR_INVALID_PARAMETER
Title: Re: error syslog failed to load attribute or class definition
Post by: badapple7 on November 28, 2020, 12:08:33 am
your schema is broken


https://lists.samba.org/archive/samba-technical/2012-April/082434.html

Title: Re: error syslog failed to load attribute or class definition
Post by: cleitonme on December 04, 2020, 11:51:06 am
I have no idea how to fix this  :'(

If anyone can help
Title: Re: error syslog failed to load attribute or class definition
Post by: doncamilo on December 04, 2020, 06:05:22 pm
 :)

Did you join the Zentyal server to a domain managed by Ms. Windows Server? The Windows Server schema should have being authomatically applyed to samba.

Your samba server doesn't include in his schema the Microsoft class "CN=Remote-Storage-Service-Point,...". https://docs.microsoft.com/en-us/windows/win32/adschema/c-remotestorageservicepoint (https://docs.microsoft.com/en-us/windows/win32/adschema/c-remotestorageservicepoint) 

Read this samba official document https://wiki.samba.org/index.php/Samba_AD_schema_extensions (https://wiki.samba.org/index.php/Samba_AD_schema_extensions) carefully and make a complete backup of your domain controllers before proceeding. Actually do it in a test lab before proceeding on production server.

Bear in mind that you have to use the Zentyal templates to customize the smb.conf file. Read the Zentyal official documentation https://doc.zentyal.org/en/appendix-c.html#stubs (https://doc.zentyal.org/en/appendix-c.html#stubs).

You should make a little google research in order to check the existance of other sysadmins applying this samba4 scheme extension.

Count on me if you need some more help :)

Cheers!