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

problem using ldapmodify.c (ITS#1504)



I m facing a strange problem while adding digital certificate  in OPENLDAP
(ver 1.2.11)..............on linux 6.2
i m using ldapmodify.c to add in to LDAP(1.2.11).
what actually i m doing is that,
first i m convrting certificate from PEM to DER format
than this DER to LDIF,
after this storing this  LDIF certificate along with other attributes in to
one file.
This file i m passing as one of input parameter to ldapmodify.c.(file is
below)

what actually happing is that sometimes it is getting added up in to LDAP
and sometimes not.
it gets stuck up at different places.sometime before adding certificate
sometime before any other attribute.
i tried to trace the cause ..............what i got is that it is getting
stuck up while allocating memory (malloc) in addmodifyop() function.
it is probably a wild pointer that corrupt the malloc /free.
i also thought that it might be the memory problem.
my machine is pentium II
64 MB RAM
out of these 64 mb 96% of the memory is in use since startup.
problem might be because of this...............

Considering file given below ,the stuck location is after
cn: Sec CA 1.0
after this there is no procceding.............

i m in great dilemma if anyone knows solution for this please let me know as
soon as possible.

dn: uid=tcs_lra1180,ou=certificate,o=airius
uid:tcs_lra1180
ou:certificate
o:airius
objectclass: top
objectclass: organization
cn: Sec CA 1.0
mail: viswanath_n@mumbai.tcs.co.in
staus: active
serial no: 10
IssueDate: 24-10-2001 06:41:03
ExpiryDate: 20-07-2004 06:41:03
usercertificate;binary::
MIIESjCCA7OgAwIBAgIBADANBgkqhkiG9w0BAQQFADCBxTELMAkG

A1UEBhMCSU4xFDASBgNVBAgTC01haGFyYXNodHJhMQ8wDQYDVQQHEwZNdW1iYWkxKDAmBgNVBAoT

H1RhdGEgQ29uc3VsdGFuY3kgU2VydmljZXMgKFRDUykxIzAhBgNVBAsTGkNvbXB1dGVyIFNlY3Vy

aXR5IFByYWN0aWNlMRMwEQYDVQQDEwpTZWMgQ0EgMS4wMSswKQYJKoZIhvcNAQkBFhx2aXN3YW5h

dGhfbkBtdW1iYWkudGNzLmNvLmluMB4XDTAxMTAyNDA2NDEwM1oXDTA0MDcyMDA2NDEwM1owgcUx

CzAJBgNVBAYTAklOMRQwEgY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