cancel
Showing results for 
Search instead for 
Did you mean: 

help me create user account

 
SOLVED
Go to solution
Maaz
Valued Contributor

help me create user account

OS: SLES 10 SP 2

Configure the LDAP domain using Yast. then

# useradd -m --service ldap --binddn dc=test,dc=com testuser
Enter LDAP Password:
ldap_starttls_s: Protocol erroruseradd: User not added to LDAP database.

from /var/log/messages
Aug 11 04:44:05 testbox useradd[4715]: new account added - account=testuser, uid=1235, gid=100, home=/home/testuser, shell=/bin/bash, by=0

please help how can I add/create an account in LDAP ?
9 REPLIES
Asif Sharif
Honored Contributor
Steven E. Protter
Exalted Contributor

Re: help me create user account

Shalom,

http://www.yolinux.com/TUTORIALS/LinuxTutorialLDAP-BindPW.html

http://www.linuxtopia.org/online_books/suse_linux_guides/SLES10/suse_enterprise_linux_server_installation_admin/sec_ldap_yast_client.html

The link came from a google search.

However this command must be run on the LDAP master, not the LDAP client.

If the system is integrated to a Windows ADS/LDAP system, then create the user on that system not the Linux system.

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Maaz
Valued Contributor

Re: help me create user account

as per the url I can add user account using Yast.

for the "useradd -m --service ldap ... " command issue, I am sorry, that was pure my fault, I was providing wrong password.. when the

Enter LDAP Passwors:

but by providing the wright password of LDAP Administrator
# useradd -m --service ldap --binddn cn=Administrator,dc=test,dc=com user01
Enter LDAP Password:
Cannot find base ou for new users.
LDAP information update failed: Operations error

now you can see error changes.

Now I am facing a strange issue, i.e when I create an account on ldap server(via yast), I have to manually create a home directory for that user, and populate the home directory via copying the /etc/skell... I searched a lot but didnt find an option that will create home directory for ldap users(via yast2)

Regards
Maaz
Maaz
Valued Contributor

Re: help me create user account

Asif Sharif are you working for MLX/LHR/PK ?
Asif Sharif
Honored Contributor

Re: help me create user account

Yes
Maaz
Valued Contributor

Re: help me create user account

Asif Sharif, if you contact me via email(my email address is available in my profile) ?

Regards
Asif Sharif
Honored Contributor

Re: help me create user account

Maaz,

I didn't see your email address in your profile.

Asif
Maaz
Valued Contributor

Re: help me create user account

ibnerazi@yahoo.com, i feel lucky if you contact me ;)
Regards

Re: help me create user account

>my email address is available in my profile?

Other members can't see it unless you put it under these:
Personal quote:
Certification: