[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldap problem
hi
i did used -b switch
ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f
example.ldif
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
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
ber_get_next on fd 10 failed errno=11 (Resource
temporarily unavailable)
do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
Manish
--- Pierangelo Masarati <ando@sys-net.it> wrote:
>
> > hi
> > now i did started from fresh.
> > i moved step by step as per the
> >
> http://www.openldap.org/doc/admin22/quickstart.html
> > but at one point i m getting
> >
> > do_bind: v3 anonymous bind
> > connection_get(10): got connid=1
> > connection_read(10): checking for input on id=1
> > ber_get_next
> > ber_get_next: tag 0x30 len 53 contents:
> > ber_get_next
> > ber_get_next on fd 10 failed errno=11 (Resource
> > temporarily unavailable)
> > do_search
> > ber_scanf fmt ({miiiib) ber:
> >>>> dnPrettyNormal: <>
> > <<< dnPrettyNormal: <>, <>
>
> That's an empty search base. Provide one via -b;
> I can't believe quick start guide doesn't mention
> it.
>
> Make sure it matches at least the suffix of your
> database, before posting again. Make sure there's
> something in your database before posting again.
>
> p.
>
> >
> > Help !!!!!!!!!!!!!
> > Manish
> >
> > --- Pierangelo Masarati <ando@sys-net.it> wrote:
> >> You're obviously adding an entry with no parent,
> >> because you didn't add "dc=linux,dc=lin" first.
> >>
> >> One question: did you read the quick start guide,
> >> by chance?
> >>
> >>
> http://www.openldap.org/doc/admin22/quickstart.html
> >>
> >> Would you mind giving it a try? You're making
> >> almost all the mistakes listed there, in almost
> >> the exact sequence. This is likely to be a
> strong
> >> argument against those who dislike OpenLDAP's
> >> documentation. At least one piece is quite
> focused
> >> on the target.
> >>
> >> p.
> >>
> >> > hi
> >> > thanks a lot atleat now i m not getting this
> >> error,
> >> > but when i add new entry i m geting new err
> mesg
> >> >
> >> > [root@linux bin]# ./ldapadd -f /tmp/test.txt -D
> >> > "cn=Manager,dc=linux,dc=lin" -w secret
> >> >
> >> > adding new entry "cn=manish
> arya,dc=linux,dc=lin"
> >> >
> >> > on xterm running ldap server i get
> >> >
> >> > note these lines in following message
> >> >
> >> > "<= bdb_dn2id: get failed: DB_NOTFOUND: No
> >> matching
> >> > key/data pair found (-30990)
> >> > bdb_add: entry at root denied"
> >> >
> >> > why am i getting this ?
> >> > <= ldap_dn2bv(cn=manish
> >> arya,dc=linux,dc=lin,272)=0
> >> > => ldap_dn2bv(272)
> >> > <= ldap_dn2bv(cn=manish
> >> arya,dc=linux,dc=lin,272)=0
> >> > <<< dnPrettyNormal: <cn=manish
> >> arya,dc=linux,dc=lin>,
> >> > <cn=manish arya,dc=linux,dc=lin>
> >> > ber_scanf fmt ({m{W}}) ber:
> >> > ber_scanf fmt ({m{W}}) ber:
> >> > ber_scanf fmt ({m{W}}) ber:
> >> > ber_scanf fmt (}) ber:
> >> > bdb_dn2entry("cn=manish arya,dc=linux,dc=lin")
> >> > => bdb_dn2id( "dc=linux,dc=lin" )
> >> > <= bdb_dn2id: get failed: DB_NOTFOUND: No
> matching
> >> > key/data pair found (-30990)
> >> > oc_check_required entry (cn=manish
> >> > arya,dc=linux,dc=lin), objectClass "person"
> >> > oc_check_allowed type "objectClass"
> >> > oc_check_allowed type "cn"
> >> > oc_check_allowed type "sn"
> >> > oc_check_allowed type "structuralObjectClass"
> >> > oc_check_allowed type "entryUUID"
> >> > oc_check_allowed type "creatorsName"
> >> > oc_check_allowed type "createTimestamp"
> >> > oc_check_allowed type "entryCSN"
> >> > oc_check_allowed type "modifiersName"
> >> > oc_check_allowed type "modifyTimestamp"
> >> > bdb_dn2entry("cn=manish arya,dc=linux,dc=lin")
> >> > => bdb_dn2id( "dc=linux,dc=lin" )
> >> > <= bdb_dn2id: get failed: DB_NOTFOUND: No
> matching
> >> > key/data pair found (-30990)
> >> > bdb_add: entry at root denied
> >> > send_ldap_result: conn=26 op=1 p=3
> >> > send_ldap_response: msgid=2 tag=105 err=32
> >> > ber_flush: 14 bytes to sd 10
> >> > connection_get(10): got connid=26
> >> > connection_read(10): checking for input on
> id=26
> >> > ber_get_next
> >> > ber_get_next: tag 0x30 len 5 contents:
> >> > ber_get_next
> >> > ber_get_next on fd 10 failed errno=0 (Success)
> >> > connection_read(10): input error=-2 id=26,
> >> closing.
> >> > connection_closing: readying conn=26 sd=10 for
> >> close
> >> > connection_close: deferring conn=26 sd=10
> >> > do_unbind
> >> > connection_resched: attempting closing conn=26
> >> sd=10
> >> > connection_close: conn=26 sd=10
> >> >
> >> > -Manish
> >> >
> >> >
> >> > --- Pierangelo Masarati <ando@sys-net.it>
> wrote:
> >> >>
> >> >> > hi
> >> >> > i m veri new to ldap, in my config file
> i
> >> hav
> >> >> line
> >> >> >
> >> >> > rootdn "cn=Manager,dc=linux,dc=lin"
> >> >> >
> >> >> > so in ldapadd command when i give
> >> >> >
> >> >> > ./ldapadd -f /tmp/test.txt -D rootdn -W
> >> >> > Enter LDAP Password:
> >> >> > ldap_bind: Invalid DN syntax (34)
> >> >> > additional info: invalid DN
> >> >>
> >> >> The string "rootdn" is not a valid DN as per
> >> >> RFC2253; it needs at least
> >> >> one attribute type and an "=" before the
> value;
> >> >> however, "cn=rootdn"
> >> >> wouldn't be valid as well because it doesn't
> >> match
> >> >> the value you set for
> >> >> rootdn in your slapd.conf.
> >> >>
> >> >> Try -D "cn=Manager,dc=linux,dc=lin", this
> might
> >> >> help.
> >> >>
> >> >> p.
> >> >>
> >> >> >
> >> >> > i mean from my config file i m creating a
> new
> >> dn
> >> >> entry
> >> >> > so do i need to mention -D option ?
> >> >> >
> >> >> > dn: cn=Manish,dc=linux,dc=lin
> >> >> > objectClass: person
> >> >> > cn: Manish
> >> >> > sn: Arya
> >> >> > mail: mkarya@rainbow.com
> >> >> > uid: mkarya
> >> >> >
> >> >> > Ahhhhhhhhhhh..........I am all confused
> >> >> > I am going for tea break please help
> !!!!!!!!
> >> >> >
> >> >> > -Manish
> >> >> > LinuxIndia.net
> >> >> > --- Pierangelo Masarati <ando@sys-net.it>
> >> wrote:
> >> >> >>
> >> >> >> > hi
> >> >> >> > i am using openldap 2.2.8
> >> >> >> > here is my slapd.conf file
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >
> >> >>
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html