Results 1 to 6 of 6

Thread: User disappeared from Admin Account List

  1. #1
    andremta is offline Special Member
    Join Date
    Feb 2009
    Posts
    128
    Rep Power
    6

    Default User disappeared from Admin Account List

    I tried once to configure Zimbra with SAMBA for my username (I'm also the admin) but things don't went in the manner as I expected so I quick gave up on this idea and tried to roll back the configuration.

    Since then, my username has disappeared from the admin account list.

    Another important information, with my username when I try to save any Preferences, I have this error:

    invalid request: LDAP schema violation: [LDAP: error code 65 - unrecognized objectClass 'posixAccount']

    Did I miss something while trying to roll back the configuration?


    I'm using Zimbra v5.0.11 OSE

  2. #2
    ArcaneMagus's Avatar
    ArcaneMagus is offline Moderator
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    Looks like your user account still has the posixAccount object class on it. To get it to re-appear in the lists you will need to remove the posix and samba object classes.

  3. #3
    andremta is offline Special Member
    Join Date
    Feb 2009
    Posts
    128
    Rep Power
    6

    Default

    Quote Originally Posted by ArcaneMagus View Post
    Looks like your user account still has the posixAccount object class on it. To get it to re-appear in the lists you will need to remove the posix and samba object classes.
    Where do I have to remove those objects?

  4. #4
    ArcaneMagus's Avatar
    ArcaneMagus is offline Moderator
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    The problem is in your LDAP account. All the standard disclaimers about how this could screw something up applies... (ie take a backup before trying this) but this worked on my server for a test account that I created. I have the Samba/POSIX LDAP extensions so the attributes that were on this users were the standard ones created.

    First create the following file, modifying the dn: field to your user account.
    Code:
    dn: uid=asdf,ou=people,dc=domain,dc=com
    changetype: modify
    delete: sambaDomainName
    -
    delete: sambaAcctFlags
    -
    delete: sambaNTPassword
    -
    delete: sambaSID
    -
    delete: gidNumber
    -
    delete: uidNumber
    -
    delete: homeDirectory
    -
    delete: loginShell
    -
    delete: objectClass
    objectClass: posixAccount
    objectClass: sambaSamAccount
    -
    Then once you have created that file (I created it as /tmp/asdf.ldif) run the following command:
    Code:
    ldapmodify -x -H ldapi:/// -D uid=zimbra,cn=admins,cn=zimbra -w `zmlocalconfig -s zimbra_ldap_password | cut -f3 -d" "` -f /tmp/asdf.ldif
    If you have extra attributes that are causing an error in that command add them to the .ldif file.

    What this does is delete all the attributes that are specific to the sambaSamAccount and the posixAccount object classes, and then removes those object classes from the account.
    Last edited by ArcaneMagus; 12-03-2009 at 12:56 PM. Reason: Changed ldap_root_password to zimbra_ldap_password

  5. #5
    andremta is offline Special Member
    Join Date
    Feb 2009
    Posts
    128
    Rep Power
    6

    Default

    Quote Originally Posted by ArcaneMagus View Post
    The problem is in your LDAP account. All the standard disclaimers about how this could screw something up applies... (ie take a backup before trying this) but this worked on my server for a test account that I created. I have the Samba/POSIX LDAP extensions so the attributes that were on this users were the standard ones created.

    First create the following file, modifying the dn: field to your user account.
    Code:
    dn: uid=asdf,ou=people,dc=domain,dc=com
    changetype: modify
    delete: sambaDomainName
    -
    delete: sambaAcctFlags
    -
    delete: sambaNTPassword
    -
    delete: sambaSID
    -
    delete: gidNumber
    -
    delete: uidNumber
    -
    delete: homeDirectory
    -
    delete: loginShell
    -
    delete: objectClass
    objectClass: posixAccount
    objectClass: sambaSamAccount
    -
    Then once you have created that file (I created it as /tmp/asdf.ldif) run the following command:
    Code:
    ldapmodify -x -H ldapi:/// -D uid=zimbra,cn=admins,cn=zimbra -w `zmlocalconfig -s zimbra_ldap_password | cut -f3 -d" "` -f /tmp/asdf.ldif
    If you have extra attributes that are causing an error in that command add them to the .ldif file.

    What this does is delete all the attributes that are specific to the sambaSamAccount and the posixAccount object classes, and then removes those object classes from the account.
    Arcane,

    I'm having this problem:


    dn: uid=myuser,ou=people,dc=doain,dc=com
    changetype: modify
    delete: objectClass
    objectClass: posixAccount
    objectClass: sambaSamAccount
    -

    zimbra@intranet:/tmp$ ldapmodify -x -H ldap://192.168.1.2 -D uid=zimbra,cn=admins,cn=zimbra -w `zmlocalconfig -s zimbra_ldap_password | cut -f3 -d" "` -f /tmp/zimbra.ldif
    modifying entry "uid=myuser,ou=people,dc=domain,dc=com"
    ldapmodify: Invalid syntax (21)
    additional info: objectClass: value #0 invalid per syntax
    zimbra@intranet:/tmp$

    What this could be?

  6. #6
    ArcaneMagus's Avatar
    ArcaneMagus is offline Moderator
    Join Date
    Feb 2007
    Location
    Portland, OR
    Posts
    1,147
    Rep Power
    10

    Default

    Searching google it seems that is a common problem when you have a space after the objectClass name, or the wrong endlines on the file.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Briefcase - Admin reverts to View at user side
    By quietas in forum Administrators
    Replies: 0
    Last Post: 11-20-2009, 11:11 AM
  2. Compartmentalized groups or locations sharing a domain
    By dstoliker in forum Administrators
    Replies: 5
    Last Post: 07-14-2008, 12:06 PM
  3. Date/time update killed admin account access
    By tenpagyatso in forum Installation
    Replies: 2
    Last Post: 07-01-2008, 09:26 AM
  4. Mailbox size displayed in user account list
    By kurt2 in forum Developers
    Replies: 2
    Last Post: 04-06-2006, 12:50 PM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 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
  •