LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-03-2006, 03:46 AM   #1
leiw
Member
 
Registered: Apr 2006
Posts: 131

Rep: Reputation: 15
Add /etc/group to openldap


My environment: CentOS4.2, Samba + openldap

I was doing below procedure to add the /etc/group to LDAP but fail:

[root@web migration]# cp /etc/group /root/group

[root@web migration]# ./migrate_group.pl /root/group > /root/group.ldif

[root@web migration]# ldapadd -x -D "cn=root,dc=wilson,dc=com" -W -f /root/group.ldif
Enter LDAP Password
adding new entry "cn=teachers,ou=Group,dc=wilson,dc=com"
ldap_add: No such object (32)
matched DN: dc=wilson,dc=com

passwd.ldif info:

dn: cn=teachers,ou=Group,dc=wilson,dc=com
objectClass: posixGroup
objectClass: top
cn: teachers
userPassword: {crypt}x
gidNumber: 521
memberUid: 521

dn: cn=students,ou=Group,dc=wilson,dc=com
objectClass: posixGroup
objectClass: top
cn: students
userPassword: {crypt}x
gidNumber: 522
memberUid: 522


ldapsearch -x -b 'dc=wilson,dc=com'

...................................
....................................
....................................

# Groups, wilson.com
dn: ou=Groups,dc=wilson,dc=com
ou: Groups
objectClass: organizationalUnit

...........................................
.........................................
......................................


I don't know where to be wrong


Thanks !!
 
  


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
group: add complete group into other group max_mad SUSE / openSUSE 1 04-12-2006 01:43 AM
add a group to a group amon Linux - Security 4 04-07-2006 05:48 PM
cannot add new group in RH jimberg51 Linux - General 1 06-08-2005 01:13 PM
Add a group to a group? Temujin_12 Linux - Security 2 06-08-2005 03:58 AM
Can't seem to add to group fredws Mandriva 3 11-10-2003 04:09 PM

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

All times are GMT -5. The time now is 09:31 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