LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-12-2019, 09:50 AM   #1
linuly
Member
 
Registered: Jan 2018
Posts: 96

Rep: Reputation: Disabled
ldap


hi,
i like to add a user y9 to ldap.
slappasswd
New password: Sisteme11
Re-enter new password: Sisteme11
{SSHA}fVS68HhT8mbsdMeslx2A7O1IrL7U5gzu

ldapadd -cxWD cn=admin,dc=test,dc=com -f y9.ldif
Enter LDAP Password: Sisteme11
ldap_bind: Invalid credentials (49)

look like the passwd is wrong.

more y9.ldif
dn: cn=y9,ou=Groups,dc=test,dc=com
cn: y9
gidNumber: 5159
objectclass: top
objectclass: posixGroup

dn: uid=y9,ou=People,dc=test,dc=com
cn: John Beck
givenName: John
sn: Beck
uid: y9
uidNumber: 5159
gidNumber: 5159
homeDirectory: /home/y9
loginShell: /bin/bash
mail: johnb@mydom.com
objectClass: top
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
userPassword: {SSHA}x
ldapsearch -x -b "dc=test,dc=com"
# extended LDIF
#
# LDAPv3
# base <dc=test,dc=com> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# test.com
dn: dc=test,dc=com
objectClass: top
objectClass: domain
dc: test

# Directory Administrators, test.com
dn: cn=Directory Administrators,dc=test,dc=com
objectClass: top
objectClass: groupofuniquenames
cn: Directory Administrators
uniqueMember: cn=Directory Manager

# Groups, test.com
dn: ou=Groups,dc=test,dc=com
objectClass: top
objectClass: organizationalunit
ou: Groups

# People, test.com
dn: ou=People,dc=test,dc=com
objectClass: top
objectClass: organizationalunit
ou: People

# Special Users, test.com
dn: ou=Special Users,dc=test,dc=com
objectClass: top
objectClass: organizationalUnit
ou: Special Users
description: Special Administrative Accounts

# Accounting Managers, Groups, test.com
dn: cn=Accounting Managers,ou=Groups,dc=test,dc=com
objectClass: top
objectClass: groupOfUniqueNames
cn: Accounting Managers
ou: groups
description: People who can manage accounting entries
uniqueMember: cn=Directory Manager

# HR Managers, Groups, test.com
dn: cn=HR Managers,ou=Groups,dc=test,dc=com
objectClass: top
objectClass: groupOfUniqueNames
cn: HR Managers
ou: groups
description: People who can manage HR entries
uniqueMember: cn=Directory Manager

# QA Managers, Groups, test.com
dn: cn=QA Managers,ou=Groups,dc=test,dc=com
objectClass: top
objectClass: groupOfUniqueNames
cn: QA Managers
ou: groups
description: People who can manage QA entries
uniqueMember: cn=Directory Manager

# PD Managers, Groups, test.com
dn: cn=PD Managers,ou=Groups,dc=test,dc=com
objectClass: top
objectClass: groupOfUniqueNames
cn: PD Managers
ou: groups
description: People who can manage engineer entries
uniqueMember: cn=Directory Manager

# search result
search: 2
result: 0 Success

# numResponses: 10
# numEntries: 9
 
Old 02-12-2019, 11:18 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member Response

Hi,

First suggestion is to learn how to use 'code' tags for long listings so your posts are cleaner therefore easier to read.

Make sure your server is setup properly. You can use; https://www.itzgeek.com/how-tos/linu...-7-rhel-7.html

Then you can use for client to get useful information from; https://www.server-world.info/en/not...p=openldap&f=3

Look at menu on the left of screen on page linked above. Very useful!

Quote:
"Knowledge is of two kinds. We Know a subject ourselves, or we know where we can find information upon it."- Samuel Johnson
Hope this helps.
Have fun & enjoy!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu ldap clients cannot login after ldap password is changed from the ldap server nitinm Ubuntu 8 08-20-2020 07:32 AM
OpenLDAP - Difference between etc/ldap.conf and etc/ldap/ldap.conf ramkrishnan Linux - Server 1 07-09-2018 02:01 PM
Difference between /etc/ldap.conf vs. /etc/ldap/ldap.conf fahadaziz Linux - Server 8 07-14-2010 05:12 AM
LDAP server not starting as user LDAP klnasveschuk Fedora 1 02-15-2007 04:49 AM
ldap-abook unable to get street name in ldap-entry Jingle Linux - Software 1 06-06-2004 07:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration