Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-24-2006, 07:25 AM
Former Zimbran
 
Posts: 294
Default Enable clear text login - Server error encountered

Background:

Zimbra 3.0.1 - bugfix release
Upgraded from M3 update 2
running on CentOS 4.2

Received the following error on:

1. Going to Configuration->Global Settings->IMAP
2. and, setting the Enable clear text login

The Error:

Message: Csfe service error
Error code: service.FAILURE
Method: ZmCsfeCommand.invoke
Details:system failure: unable to modify attrs

Any idea how I can cure this?
Reply With Quote
  #2 (permalink)  
Old 02-24-2006, 08:27 AM
Zimbra Employee
 
Posts: 2,103
Default

That should work.

Can you try from the command line?

su - zimbra
zmprov mcf zimbraImapCleartextLoginEnabled TRUE
Reply With Quote
  #3 (permalink)  
Old 02-24-2006, 09:02 AM
Former Zimbran
 
Posts: 294
Default It still doesn't work

[root@zimbra zimbra]# su - zimbra
[zimbra@zimbra ~]$ zmprov mcf zimbraImapCleartextLoginEnabled TRUE
ERROR: service.FAILURE (system failure: unable to modify attrs) (cause: javax.naming.directory.SchemaViolationException [LDAP: error code 65 - unrecognized objectClass 'zimbraHsmGlobalConfig'])
[zimbra@zimbra ~]$

Reply With Quote
  #4 (permalink)  
Old 02-24-2006, 09:08 AM
Zimbra Employee
 
Posts: 2,103
Default

Can you send me the output from:
grep include /opt/zimbra/conf/slapd.conf

ls /opt/zimbra/lib/conf

cat /opt/zimbra/lib/conf/zimbra-ext.schema
Reply With Quote
  #5 (permalink)  
Old 02-24-2006, 09:13 AM
Former Zimbran
 
Posts: 294
Default The file "zimbra-ext.schema" does not exist

[root@zimbra opt]# grep include /opt/zimbra/conf/slapd.conf
include "/opt/zimbra/openldap/etc/openldap/schema/core.schema"
include "/opt/zimbra/openldap/etc/openldap/schema/cosine.schema"
include "/opt/zimbra/openldap/etc/openldap/schema/inetorgperson.schema"
include "/opt/zimbra/openldap/etc/openldap/schema/amavisd.schema"
include "/opt/zimbra/openldap/etc/openldap/schema/zimbra.schema"
[root@zimbra opt]# ls /opt/zimbra/lib/conf
zimbra-hsm.schema
[root@zimbra opt]# cat /opt/zimbra/lib/conf/zimbra-ext.schema
cat: /opt/zimbra/lib/conf/zimbra-ext.schema: No such file or directory
[root@zimbra opt]#



Did I do something wrong somewhere?
Reply With Quote
  #6 (permalink)  
Old 02-24-2006, 09:20 AM
Zimbra Employee
 
Posts: 2,103
Default

No, I don't think so.

Try adding
include "/opt/zimbra/ib/conf/zimbra-hsm.schema"

right after
include "/opt/zimbra/openldap/etc/openldap/schema/zimbra.schema"

in slapd.conf and then
ldap stop
ldap start

Then retry the zmprov command.
Reply With Quote
  #7 (permalink)  
Old 02-24-2006, 09:51 AM
Former Zimbran
 
Posts: 294
Default Still the same error

[root@zimbra bin]# ./zmprov mcf zimbraImapCleartextLoginEnabled TRUE
ERROR: service.FAILURE (system failure: unable to modify attrs) (cause: javax.naming.directory.SchemaViolationException [LDAP: error code 65 - unrecognized objectClass 'zimbraHsmGlobalConfig'])
[root@zimbra bin]#

I added the line and restarted ldap (stop and start), and then executed the above command.

I received the same result when I tried using Zimbra Admin Section, again.

I also stopped zimbra; checked and killed some lingering zimbra processes and started it again; but the output for the above command did not change.

(BTW, I also tried it as zimbra user)
[zimbra@zimbra ~]$ zmprov mcf zimbraImapCleartextLoginEnabled TRUE
ERROR: service.FAILURE (system failure: unable to modify attrs) (cause: javax.naming.directory.SchemaViolationException [LDAP: error code 65 - unrecognized objectClass 'zimbraHsmGlobalConfig'])
[zimbra@zimbra ~]$

Last edited by czaveri; 02-24-2006 at 09:54 AM.. Reason: Incomplete post
Reply With Quote
  #8 (permalink)  
Old 02-24-2006, 10:01 AM
Zimbra Employee
 
Posts: 2,103
Default

Write this to a file (FILENAME):
Code:
# Add HSM-specific attributes and values

dn: cn=config,cn=zimbra
changetype: modify
objectclass: zimbraHsmGlobalConfig
-

dn: cn=config,cn=zimbra
changetype: modify
add:
zimbraHsmAge: 30d
zimbraServerInheritedAttr: zimbraHsmAge
then
Code:
zmlocalconfig -s ldap_root_password
zmlocalconfig -s zimbra_ldap_userdn
Take the values you got for password and userdn and the name of the file you created and run (as the zimbra user):
Code:
/opt/zimbra/openldap/bin/ldapmodify -a -c -w 'PASSWORD' -D "USERDN" -x -f FILENAME
NOTE - quotes are important in the above command.
Reply With Quote
  #9 (permalink)  
Old 02-24-2006, 10:25 AM
Former Zimbran
 
Posts: 294
Default Error persists

Thank-you for your time and help, but errors like me too much.

After creating the file /opt/FILENAME and chown-ing it to zimbra, I proceeded to do the following.

[root@zimbra opt]# su - zimbra
[zimbra@zimbra ~]$ zmlocalconfig -s ldap_root_password
ldap_root_password = YdIjRfCpVz
[zimbra@zimbra ~]$ zmlocalconfig -s zimbra_ldap_userdn
zimbra_ldap_userdn = uid=zimbra,cn=admins,cn=zimbra
[zimbra@zimbra ~]$ /opt/zimbra/openldap/bin/ldapmodify -a -c -w 'YdIjRfCpVz' -D "uid=zimbra,cn=admins,cn=zimbra" -x -f /opt/FILENAME
modifying entry "cn=config,cn=zimbra"
ldap_modify: Invalid syntax (21)
additional info: objectclass: value #0 invalid per syntax

modifying entry "cn=config,cn=zimbra"
ldap_modify: Undefined attribute type (17)
additional info: zimbraHsmAge: attribute type undefined

[zimbra@zimbra ~]$
Reply With Quote
  #10 (permalink)  
Old 02-24-2006, 10:32 AM
Zimbra Employee
 
Posts: 2,103
Default

Can you send post /opt/zimbra/conf/slapd.conf?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.