Results 1 to 3 of 3

Thread: create a user acount in phpldapadmin

  1. #1

    create a user acount in phpldapadmin

    Hello,

    I have problems to create a user acount in phpldapadmin.

    I have created the following tree:

    >>ou=company
    ..>>ou=goups
    ..>>ou=user

    ou=company has under object-class an entry zarafa-company

    but zarafa-admin --sync gives me the following output:

    No companies found.
    Users and groups synchronized.

    Why is there no companie shown? Ang what have I to do for this?

    When I try to create under ou=user a user acount. I get the page: New User Account (step 1 of 1)
    But when I have made my entry and try to enter, nothing happends.

    What cold I do?

    Greetings NIxdorf

  2. #2
    Member
    Join Date
    Jun 2009
    Location
    The Hague, The Netherlands
    Posts
    65

    Re: create a user acount in phpldapadmin

    Hi nixdorf,

    I've been fighting today with the ldap part and here is how I got it sort of working. Would be nice if there was a more detailed document how to set this up, especially the adding users/groups/companies part in (open)ldap...

    Get Fabian's templates from viewtopic.php?f=11&t=642
    Direct download link: download/file.php?id=65
    Make sure you follow Fabian's modifications to /etc/zarafa/ldap.cfg

    Now unpack the templates and fix some things:
    - add the closing </template> at the end in creation/zarafaCompany.xml
    - remove "-->" on line 4 in creation/zarafaCompany.xml
    - add the closing </template> at the end in modification/zarafaCompany.xml
    - remove "-->" on line 4 in modification/zarafaCompany.xml

    Next copy creation/zarafaAccount.xml and creation/zarafaCompany.xml to the main phpldapadmin templates/ directory. And copy modification/zarafa* to templates/modification/. Next purge caches in phpldapadmin.

    Here are copies of my configuration files (for openldap and zarafa 6.30.1):

    /etc/openldap/slapd.conf:

    Code:
    include /etc/openldap/schema/core.schema
    include /etc/openldap/schema/cosine.schema
    include /etc/openldap/schema/inetorgperson.schema
    include /etc/openldap/schema/nis.schema
    include /etc/openldap/schema/qmail.schema
    include /etc/openldap/schema/zarafa.schema
    allow bind_v2
    pidfile /var/run/openldap/slapd.pid
    argsfile /var/run/openldap/slapd.args
    database	bdb
    suffix "dc=test,dc=local"
    rootdn "cn=Manager,dc=test,dc=local"
    rootpw test
    directory /var/lib/ldap
    index objectClass eq,pres
    index ou,cn,mail,surname,givenname eq,pres,sub
    index uidNumber,gidNumber,loginShell eq,pres
    index uid,memberUid eq,pres,sub
    index nisMapName,nisMapEntry eq,pres,sub
    loglevel 256
    /etc/zarafa/ldap.cfg

    Code:
    ldap_host = localhost
    ldap_port = 389
    ldap_protocol = ldap
    ldap_server_charset = utf-8
    ldap_bind_user = cn=Manager,dc=test,dc=local
    ldap_bind_passwd = test
    ldap_user_search_base = dc=test,dc=local
    ldap_user_search_filter = (objectClass=zarafa-user)
    ldap_user_unique_attribute = entryUUID
    ldap_user_unique_attribute_type = text
    ldap_group_search_base = dc=test,dc=local
    ldap_group_scope = sub
    ldap_group_search_filter = (objectClass=posixGroup)
    ldap_group_unique_attribute = gidNumber
    ldap_group_unique_attribute_type = text
    ldap_fullname_attribute = cn
    ldap_loginname_attribute = uid
    ldap_password_attribute = userPassword
    ldap_emailaddress_attribute = mail
    ldap_user_certificate_attribute = userCertificate
    ldap_isadmin_attribute = zarafaAdmin
    ldap_nonactive_attribute =
    ldap_authentication_method = password
    ldap_groupname_attribute = cn
    ldap_groupmembers_attribute = member
    ldap_groupmembers_attribute_type = text
    ldap_groupmembers_relation_attribute =
    ldap_user_sendas_attribute = zarafaSendAsPrivilege
    ldap_user_sendas_attribute_type = text
    ldap_user_sendas_relation_attribute =
    ldap_company_unique_attribute = ou
    ldap_company_unique_attribute_type = text
    ldap_company_search_base = dc=test,dc=local
    ldap_company_scope = sub
    ldap_company_search_filter = (objectClass=organizationalUnit)
    ldap_companyname_attribute = ou
    ldap_company_view_attribute = zarafaViewPrivilege
    ldap_company_view_attribute_type = text
    ldap_company_view_relation_attribute =
    ldap_company_admin_attribute = zarafaAdminPrivilege
    ldap_company_admin_attribute_type = text
    ldap_company_admin_relation_attribute =
    ldap_company_system_admin_attribute = zarafaSystemAdmin
    ldap_company_system_admin_attribute_type = text
    ldap_company_system_admin_relation_attribute =
    ldap_quota_userwarning_recipients_attribute = zarafaQuotaUserWarningRecipients
    ldap_quota_userwarning_recipients_attribute_type = text
    ldap_quota_userwarning_recipients_relation_attribute =
    ldap_quota_companywarning_recipients_attribute = zarafaQuotaCompanyWarningRecipients
    ldap_quota_companywarning_recipients_attribute_type = text
    ldap_quota_companywarning_recipients_relation_attribute=
    ldap_quotaoverride_attribute = zarafaQuotaOverride
    ldap_warnquota_attribute = zarafaQuotaWarn
    ldap_softquota_attribute = zarafaQuotaSoft
    ldap_hardquota_attribute = zarafaQuotaHard
    ldap_userdefault_quotaoverride_attribute = zarafaUserDefaultQuotaOverride
    ldap_userdefault_warnquota_attribute = zarafaUserDefaultQuotaWarn
    ldap_userdefault_softquota_attribute = zarafaUserDefaultQuotaSoft
    ldap_userdefault_hardquota_attribute = zarafaUserDefaultQuotaHard
    ldap_quota_multiplier = 1
    ldap_user_department_attribute = department
    ldap_user_location_attribute = physicalDeliveryOfficeName
    ldap_user_telephone_attribute = telephoneNumber
    ldap_user_fax_attribute = facsimileTelephoneNumber
    ldap_last_modification_attribute = modifyTimestamp
    If all went well then you should now be able to create a Zarafa Company and a Zarafa user in phpldapadmin. You can check if Zarafa can communicate ok with openldap with the command:

    Code:
    # zarafa-admin -l
    Here is the output I get:

    Code:
    User list for Default(2):
    	username		fullname
    	---------------------------------------------
    	SYSTEM		SYSTEM
    	test		Test User
    Question: I keep reading about groups in the Zarafa LDAP docs but I don't understand how to create one. In phpldapadmin I only see "Zarafa Company" and "Zarafa User" and in the "Custom" page I can select "zarafa-group" (which is greyed-out) but I get an error when I press "Create object". How can I create a "Zarafa Group" and where should I place it? Below "Zarafa Company" or somewhere else?

  3. #3
    Zarafa Testing

    Join Date
    Jul 2008
    Location
    irc.freenode.com > #zarafa
    Posts
    428

    Re: create a user acount in phpldapadmin

    Hi patrick,

    Your ldap.cfg shows "ldap_group_search_filter = (objectClass=posixGroup)", try to use the objectclass posixgroup to a create group.

    to add users in a group, check the option "ldap_groupmembers_relation_attribute"

    my last hit for you is use "memberUid" instead of member for the option " ldap_groupmembers_attribute ", openldap/phphldap use by default memeberUid.

    Hope this will help you out

    Suyi
    Don't bug me

Similar Threads

  1. Cannot create user
    By bleachin in forum Installation and Configuration Archives
    Replies: 1
    Last Post: 16-02-2011, 07:30 AM
  2. zarafa-6.40.0-19574: New user with phpldapadmin
    By tomcar in forum Beta Feedback Archives
    Replies: 2
    Last Post: 27-04-2010, 01:09 PM
  3. cannot create user: Unable to create user, object not found
    By maharaja in forum Installation and Configuration Archives
    Replies: 6
    Last Post: 13-01-2010, 05:35 PM
  4. cold not add a second user with phpldapadmin
    By nixdorf in forum Installation and Configuration Archives
    Replies: 9
    Last Post: 17-12-2008, 06:33 PM
  5. Unable to create user
    By Kyeto in forum Installation and Configuration Archives
    Replies: 3
    Last Post: 15-04-2008, 02:21 PM

Bookmarks

Posting Permissions

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