Author Topic: Problem adding samba/ldap user  (Read 5814 times)

coffen

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Problem adding samba/ldap user
« on: January 25, 2011, 04:16:50 pm »
Here is my scenario.

I set up Zentyal with a user coffen.
Zentyal works ok and I can add samba/ldap users through the webif.

My problem is that I cannot add myself (i.e. coffen) as a samba/ldap user.
Zentyal complains about the user already exists as an ubuntu user.

I need to be able to join the new domain as user coffen.

Any ideas?

La Luz

  • Zen Apprentice
  • *
  • Posts: 13
  • Karma: +0/-0
  • Come on!
    • View Profile
Re: Problem adding samba/ldap user
« Reply #1 on: January 29, 2011, 02:54:59 pm »
When Zentyal instalation ask you to create the admin user, it creates a local user with these credentials.
You can't create another user with that username until you delete the previous one. So, you need to create another administrator superuser (with another username) and then delete the previous one.
I found too complicated to do that so I recomend you to create a diferent user for ldap.

If you really need to log using that username I recomend you to read this guide:
https://help.ubuntu.com/8.04/serverguide/C/user-management.html

Don't forget to make your user belongs to "admin" group.

Saludos

coffen

  • Zen Apprentice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Problem adding samba/ldap user
« Reply #2 on: January 30, 2011, 07:36:31 pm »
Yes I know it can be done that way.
I just cannot understand why Zentyal does not allow to migrate existing users into ldap.

philmills

  • Zen Warrior
  • ***
  • Posts: 161
  • Karma: +8/-0
    • View Profile
Re: Problem adding samba/ldap user
« Reply #3 on: February 18, 2011, 11:36:57 am »
I have a similar problem.
Currently using Ebox 1.4, and wanted to upgrade to Zentyal 2.0-3.
As there is no upgrade path, I installed zentyal on a new server hoping to import the old config once all the relavant software modules are added.

However when I try to import the config I get this error:
Code: [Select]
Some error has happened in Zentyal:

Cannot restore because user root already exists as system user. Delete or rename this user and try again

Why is zentyal even trying to import the root user? Root user cannot be renamed, so therefore its impossible to import the config.

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Problem adding samba/ldap user
« Reply #4 on: March 25, 2011, 10:59:08 am »
Hello,
 as is has already said in this thread Zentyal doesn't allow the same usernames in local users and LDAP users; this is to avoid various problems.
The users that are managed by Zentyal are of course, the LDAP users.

Migration from /etc/passwd users to LDAP users does not exists mainly because it is a feature that doesn't seem widely useful. In fact this is the first request of it that I am ware.

The solution is either rename or delete the existent user. Since renaming is very error-prone, best is to delete the previous one.

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Problem adding samba/ldap user
« Reply #5 on: March 25, 2011, 11:02:48 am »
So, you need to create another administrator superuser (with another username) and then delete the previous one.
I found too complicated to do that so I recomend you to create a diferent user for ldap.


To create an administrator superuser:

Code: [Select]
$  sudo adduser username # create the user
$ sudo adduser username admin # to be able to run sudo and login in Zentyal

I recommend to move  the contents of the home directory of the user to be removed to the home directory of the new one.

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Problem adding samba/ldap user
« Reply #6 on: March 25, 2011, 11:04:28 am »
Quote
Why is zentyal even trying to import the root user? Root user cannot be renamed, so therefore its impossible to import the config.

This is a bug and is now fixed. See http://trac.zentyal.org/ticket/2709