[Date Prev][Date Next] [Chronological] [Thread] [Top]

not making new entries



hi

[root@linux bin]# cat /tmp/test.txt
dn: dc=linux,dc=lin
objectclass: LinuxUsers
objectclass: RainbowUsers
o: Rainbow
dc: linux
dn: cn=Manager,dc=linux,dc=lin
objectclass: organizationalRole
cn: Manager

[root@linux bin]# ./ldapadd -D
"cn=Manager,dc=linux,dc=lin" -w secret -f
/tmp/test.txt
adding new entry "dc=linux,dc=lin"

[root@linux bin]# ./ldapadd -D
"cn=Manager,dc=linux,dc=lin" -w secret -f
/tmp/test.txt
adding new entry "dc=linux,dc=lin"

why is it adding duplicate entry ? i did same entry
two times

then i when i search it said 0 results found 

[root@linux bin]# ./ldapsearch 'dc=linux,dc=lin'
'(objectclass=*)'
# extended LDIF
#
# LDAPv3
# base <> with scope sub
# filter: dc=linux,dc=lin
# requesting: (objectclass=*)
#

# search result
search: 2
result: 32 No such object

# numResponses: 1


Thanks
Manish
--- Pierangelo Masarati <ando@sys-net.it> wrote:
> 
> > hi
> >    thanks for responce
> > my specific point is about
> > "on fd 10 failed errno=11 (Resource
> >  temporarily unavailable)" message
> 
> As I wrote, this is not an error.
> Please stay on the list.  Errors
> are returned to clients, and logged
> in a different way (e.g. you don't
> need -d -1 to see them).
> 
> p.
> 
> >
> > I am using openldap 2.2.8 compiled on Linux
> (Fedora)
> >
> > -Manish
> > LinuxIndia.net
> >
> > --- Pierangelo Masarati <ando@sys-net.it> wrote:
> >>
> >> > hi
> >> >    i did used -b switch
> >> > ldapadd -x -D "cn=Manager,dc=example,dc=com" -W
> -f
> >> > example.ldif
> >>
> >> This is an add, it has nothing to do with -b
> <base>;
> >>
> >> >
> >> > it produced following output
> >> > # extended LDIF
> >> > #
> >> > # LDAPv3
> >> > # base <> with scope base
> >> > # filter: (objectclass=*)
> >> > # requesting: namingContexts
> >> > #
> >> >
> >> > #
> >> > dn:
> >> > namingContexts: dc=linux,dc=lin
> >> >
> >> > # search result
> >> > search: 2
> >> > result: 0 Success
> >> >
> >> > # numResponses: 2
> >> > # numEntries: 1
> >>
> >> however, now I understand what you're trying to
> do:
> >> you are legitimately trying to search the root
> DSE;
> >> you asked for the "namingContexts" attribute, and
> >> you got it; so, what more?
> >>
> >> >
> >> > but also gave error on ldap server
> >> >
> >> > connection_get(10): got connid=1
> >> > connection_read(10): checking for input on id=1
> >> > ber_get_next
> >> > ber_get_next: tag 0x30 len 46 contents:
> >> > ber_get_next
> >> > on fd 10 failed errno=11 (Resource
> >> > temporarily unavailable)
> >> > do_bind
> >> > ber_scanf fmt ({imt) ber:
> >> > ber_scanf fmt (m}) ber:
> >>
> >> The "error" you see is not an error at all,
> >> in fact you got positive response.
> >> That message has to do with the server
> >> handling the connection with the client.
> >>
> >> BTW, what software version are you using?
> >>
> >> p.
> >>
> >> --
> >> Pierangelo Masarati
> >> mailto:pierangelo.masarati@sys-net.it
> >>
> >>
> >
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Tax Center - File online by April 15th
> > http://taxes.yahoo.com/filing.html
> 
> 
> -- 
> Pierangelo Masarati
> mailto:pierangelo.masarati@sys-net.it
> 
> 



	
		
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html