Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: [SOLVED] Unable to add a new account.

  1. #1
    Stergil is offline Senior Member
    Join Date
    May 2007
    Posts
    71
    Rep Power
    8

    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.

  2. #2
    Stergil is offline Senior Member
    Join Date
    May 2007
    Posts
    71
    Rep Power
    8

    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.

  3. #3
    Stergil is offline Senior Member
    Join Date
    May 2007
    Posts
    71
    Rep Power
    8

    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

  4. #4
    quanah is offline Zimbra Employee
    Join Date
    May 2007
    Location
    Zimbra
    Posts
    1,262
    Rep Power
    10

    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
    Server Architect
    Zimbra, Inc
    --------------------
    Zimbra :: the leader in open source messaging and collaboration

  5. #5
    Stergil is offline Senior Member
    Join Date
    May 2007
    Posts
    71
    Rep Power
    8

    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.

  6. #6
    Greg is offline Zimbra Employee
    Join Date
    Sep 2005
    Location
    Tucson - San Francisco - Moscow
    Posts
    127
    Rep Power
    9

    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

  7. #7
    Stergil is offline Senior Member
    Join Date
    May 2007
    Posts
    71
    Rep Power
    8

    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?

  8. #8
    Stergil is offline Senior Member
    Join Date
    May 2007
    Posts
    71
    Rep Power
    8

    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?

  9. #9
    schmicha is offline Starter Member
    Join Date
    Feb 2008
    Posts
    1
    Rep Power
    7

    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

  10. #10
    Stergil is offline Senior Member
    Join Date
    May 2007
    Posts
    71
    Rep Power
    8

    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.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 10-26-2007, 02:30 PM
  2. Replies: 4
    Last Post: 09-19-2007, 12:12 AM
  3. Replies: 3
    Last Post: 03-04-2007, 10:53 PM
  4. Error when adding account : cannot add alias
    By Bingo in forum Administrators
    Replies: 5
    Last Post: 06-21-2006, 03:32 AM
  5. Using Zimlet to add zimbra account
    By dzed in forum Zimlets
    Replies: 2
    Last Post: 05-05-2006, 02:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •