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

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-06-2008, 10:57 AM
Senior Member
 
Posts: 71
Question [SOLVED] Unable to add a new account.

When attempting to add a new account I get the following error:

Code:
Message: createAccount invalid attr value: [LDAP: error code 21 - objectClass: value #3 invalid per syntax] Error code: 
account.INVALID_ATTR_VALUE Method: 
ZmCsfeCommand.prototype.invoke Details:soap:Sender
LDAP service is running. This is the first user I'm attempting to add since upgrading to v5 a couple of weeks ago.

In searching the forums I saw a few mentions of samba & posix accounts. In an earlier release I played around with the samba PDC integration. However, I've upgraded several versions since then w/o re-issuing the necessary configuration changes. I currently have no posix or samba options in the add account dialoge.

Any direction would be appreciated.

Last edited by Stergil; 02-06-2008 at 10:59 AM..
Reply With Quote
  #2 (permalink)  
Old 02-06-2008, 06:59 PM
Senior Member
 
Posts: 71
Default

I've upgraded from 5.0 to 5.0.2 and am having the same result.

I've also followed suggestions in another thread to see if I had a deadlocks, which I didn't. (Creating account problem)

I'm continuing to browse the forums in hopes of finding something I've over-looked.

Last edited by Stergil; 02-06-2008 at 07:24 PM..
Reply With Quote
  #3 (permalink)  
Old 02-06-2008, 07:10 PM
Senior Member
 
Posts: 71
Default

tailing /opt/zimbra/log/mailbox.log when the failure occurs results in the following:

Code:
2008-02-06 20:33:40,089 INFO  [btpool0-8] [name=addr@fourtysix.com;ip=192.168.1.100;ua=ZimbraWebClient - FF3.0 (Win);] SoapEngine - handler exception
com.zimbra.cs.account.AccountServiceException: createAccount invalid attr value: [LDAP: error code 21 - objectClass: value #3 invalid per syntax]
Code:account.INVALID_ATTR_VALUE
        at com.zimbra.cs.account.AccountServiceException.INVALID_ATTR_VALUE(AccountServiceException.java:153)
        at com.zimbra.cs.account.ldap.LdapUtil.createEntry(LdapUtil.java:1228)
        at com.zimbra.cs.account.ldap.LdapProvisioning.createAccount(LdapProvisioning.java:760)
        at com.zimbra.cs.account.ldap.LdapProvisioning.createAccount(LdapProvisioning.java:609)
        at com.zimbra.cs.service.admin.CreateAccount.handle(CreateAccount.java:58)
        at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:342)
        at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:208)
        at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:113)
        at com.zimbra.soap.SoapServlet.doPost(SoapServlet.java:272)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at com.zimbra.cs.servlet.ZimbraServlet.service(ZimbraServlet.java:174)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
        at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)
        at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:132)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:716)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:406)
        at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
        at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.handler.RewriteHandler.handle(RewriteHandler.java:176)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:313)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
        at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
        at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - objectClass: value #3 invalid per syntax]; remaining name 'uid=test,ou=people,dc=fourtysix,dc=com'
        at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3018)
        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2951)
        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2758)
        at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:774)
        at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:319)
        at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:248)
        at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:183)
        at com.zimbra.cs.account.ldap.LdapUtil.createEntry(LdapUtil.java:1220)
        ... 33 more
Reply With Quote
  #4 (permalink)  
Old 02-06-2008, 07:16 PM
Zimbra Employee
 
Posts: 572
Default

Are you able to add an account from the commandline as the zimbra user, using the "zmprov ca" command?

It's complaining that objectClass #4 is not valid during your user creation (they are 0 based in the numbering, so that's why value#3 is objectClass #4 ).

I note that my object's only have 3 objectClasses, so I wonder if the samba stuff got triggered somehow.

--Quanah
__________________
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration
Reply With Quote
  #5 (permalink)  
Old 02-06-2008, 07:23 PM
Senior Member
 
Posts: 71
Default

No luck.

Code:
zimbra@zimbra:~$ zmprov ca test@fourtysix.com testtest
ERROR: account.INVALID_ATTR_VALUE (createAccount invalid attr value: [LDAP: error code 21 - objectClass: value #3 invalid per syntax])
fwiw I also tried the permissions fix that was suggested in another thread, same result.
Reply With Quote
  #6 (permalink)  
Old 02-06-2008, 07:31 PM
Zimbra Employee
 
Posts: 127
Default

Please run this command to see what values are in zimbraAccountExtraObjectClass config attribute:

Code:
/opt/zimbra/bin/zmprov gacf | grep zimbraAccountExtraObjectClass
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
P.S.: don't forget to vote on this bug
add Samba LDAP entries to Exchange Migration Tool
Reply With Quote
  #7 (permalink)  
Old 02-06-2008, 07:35 PM
Senior Member
 
Posts: 71
Default

Good one. Apparently the samba stuff is still hanging around.

Code:
zimbra@zimbra:~$ /opt/zimbra/bin/zmprov gacf | grep zimbraAccountExtraObjectClass
zimbraAccountExtraObjectClass: amavisAccount
zimbraAccountExtraObjectClass: posixAccount
zimbraAccountExtraObjectClass: sambaSamAccount
I undeployed the admin extensions long ago, and they're not in the list. Nor do I get Samba or Posix options when adding/editing an account.

How can I go about removing the extra objects properly?
Reply With Quote
  #8 (permalink)  
Old 02-07-2008, 08:29 PM
Senior Member
 
Posts: 71
Default

I re-deployed and then undeployed the samba & posix admin extensions attempting to remove the objects that it adds/creates.

This didn't seem to help. I've not had much luck finding any direction in the wiki or forums.

Does anyone have some advice on how to handle this situation?
Reply With Quote
  #9 (permalink)  
Old 02-09-2008, 01:38 PM
Starter Member
 
Posts: 1
Default

Hello

I have the same Issue in 5.0.1 GA:

our zimbraAccountExtraObjects are:
Code:
 zmprov gacf | grep ObjectClass
     zimbraAccountExtraObjectClass: amavisAccount
     zimbraAccountExtraObjectClass: posixAccount
     zimbraAccountExtraObjectClass: sambaSamAccount
     zimbraAccountExtraObjectClass: sambaAccount
I remove the ExtraObjectClass with this:

Code:
 zmprov mcf -zimbraAccountExtraObjectClass posixAccount
 zmprov mcf -zimbraAccountExtraObjectClass sambaAccount
 zmprov mcf -zimbraAccountExtraObjectClass sambaSamAccount
After removing the objects I can add new accounts
Reply With Quote
  #10 (permalink)  
Old 02-10-2008, 03:00 AM
Senior Member
 
Posts: 71
Default

Great find schmicha, that worked perfectly. Thanks loads!!

How'd you dig up that solution btw? I spent hours digging through the wiki & forums without coming across that.
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.