FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Directory

 
 
LinkBack Thread Tools
 
Old 08-04-2012, 01:52 PM
Fosiul Alam
 
Default Please help me to build my ldif file .

Hi for bellow search i get this :


ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b
"ou=users,l=uk,dc=fosiul,dc=lan" uidNumber=1000
# extended LDIF
#
# LDAPv3
# base <ou=users,l=uk,dc=fosiul,dc=lan> with scope subtree
# filter: uidNumber=1000
# requesting: ALL
#

# falam, users, UK, fosiul.lan
dn: uid=falam,ou=users,l=UK,dc=fosiul,dc=lan
givenName: Fosiul
sn: Alam
loginShell: /bin/bash
uidNumber: 1000
gidNumber: 6000
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
objectClass: posixAccount
uid: falam
cn: Fosiul Alam
homeDirectory: /home/falam
userPassword:: e1NTSEF9MSG1kOVcxdjFVUFVHMVA3eXI0dFQvZ2c9PQ=
=

# search result
search: 3
result: 0 Success

# numResponses: 2
# numEntries: 1

NOw i am trying to create ldif file so that i can add entry manually .
-----------------------------------------------------------------------------------------

adding a new user :

dn: uid=yalam,ou=users,l=UK,dc=fosiul,dc=lan
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
objectClass: posixAccount
cn: Yafali Alam
uid: salam
uidNumber: 1001
gidNumber: 6000
homeDirectory: /home/yalam
loginShell: /bin/bash
gecos: Yafali Alam,Karate Instructor,Room 37A,435-555-555,801-555-555
userPassword: {crypt}x
shadowLastChange: 0
shadowMax: 0
shadowWarning: 0

but wh en i do this :
=======================================
ldapadd -xZZ -D "cn=Directory Manager,l=UK,dc=fosiul,dc=lan" -w
testtest -f add.ldif
I get bellow error :

dap_bind: No such object (32)
matched DN: l=uk,dc=fosiul,dc=lan

Can any one please help me to build the ldif ??
Thanks
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 
Old 08-04-2012, 04:00 PM
Grzegorz Dwornicki
 
Default Please help me to build my ldif file .

It looks like you are using wrong directory manager DN. Maybe you have administrator named just "cn=Directory Manager"?


Greg.


Send from htc desire z

04-08-2012 15:52, "Fosiul Alam" <fosiul@gmail.com> napisał(a):
Hi for bellow search i get this :





ldapsearch -xZZ -D "cn=Directory Manager" -w 'testtest' -b

"ou=users,l=uk,dc=fosiul,dc=lan" ┬*uidNumber=1000

# extended LDIF

#

# LDAPv3

# base <ou=users,l=uk,dc=fosiul,dc=lan> with scope subtree

# filter: uidNumber=1000

# requesting: ALL

#



# falam, users, UK, fosiul.lan

dn: uid=falam,ou=users,l=UK,dc=fosiul,dc=lan

givenName: Fosiul

sn: Alam

loginShell: /bin/bash

uidNumber: 1000

gidNumber: 6000

objectClass: top

objectClass: person

objectClass: organizationalPerson

objectClass: inetorgperson

objectClass: posixAccount

uid: falam

cn: Fosiul Alam

homeDirectory: /home/falam

userPassword:: e1NTSEF9MSG1kOVcxdjFVUFVHMVA3eXI0dFQvZ2c9PQ=

┬*=



# search result

search: 3

result: 0 Success



# numResponses: 2

# numEntries: 1



NOw i am trying to create ldif file so that i can add entry manually .

-----------------------------------------------------------------------------------------



adding a new user :



dn: uid=yalam,ou=users,l=UK,dc=fosiul,dc=lan

objectClass: top

objectClass: person

objectClass: organizationalPerson

objectClass: inetorgperson

objectClass: posixAccount

cn: Yafali Alam

uid: salam

uidNumber: 1001

gidNumber: 6000

homeDirectory: /home/yalam

loginShell: /bin/bash

gecos: Yafali Alam,Karate Instructor,Room 37A,435-555-555,801-555-555

userPassword: {crypt}x

shadowLastChange: 0

shadowMax: 0

shadowWarning: 0



but wh en i do this :

=======================================

ldapadd -xZZ ┬*-D "cn=Directory Manager,l=UK,dc=fosiul,dc=lan" -w

testtest -f add.ldif

I get bellow error :



dap_bind: No such object (32)

┬* ┬* ┬* ┬* matched DN: l=uk,dc=fosiul,dc=lan



Can any one please help me to build the ldif ??

Thanks

--

389 users mailing list

389-users@lists.fedoraproject.org

https://admin.fedoraproject.org/mailman/listinfo/389-users
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 

Thread Tools




All times are GMT. The time now is 07:04 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ę2007 - 2008, www.linux-archive.org