Silverbrook
asked on
ldapmodify invalid format error
Hi.
I have two servers;
Server1:
FreeBSD 4.8-RELEASE-p4
openldap-server-2.1.22_2
Server2:
Linux 2.6.11-hardened-r1 (Gentoo)
openldap-2.1.30-r4
I'm attempting to load a jpeg picture into Active Directory with the following commands.
# /usr/bin/ldapmodify -h sql-direct -x -D "domainname\\administrator " -W
Enter LDAP Password:
dn: CN=Marianne Sharp,OU=Users,OU=Standard ,OU=Resour ces,DC=dom ainname,DC =com
changetype: modify
add: jpegPhoto
jpegPhoto:< http://goose/images/staff/msharp.jpg
Attempted first on Server2. It gives me the following error message;
ldapmodify: invalid format (line 4) entry: "CN=Marianne Sharp,OU=Users,OU=Standard ,OU=Resour ces,DC=sil verbrookre search,DC= com"
Attempt on Server1 loads the picture without error.
Anyone have any ideas on what the problem could be?
Thanks.
I have two servers;
Server1:
FreeBSD 4.8-RELEASE-p4
openldap-server-2.1.22_2
Server2:
Linux 2.6.11-hardened-r1 (Gentoo)
openldap-2.1.30-r4
I'm attempting to load a jpeg picture into Active Directory with the following commands.
# /usr/bin/ldapmodify -h sql-direct -x -D "domainname\\administrator
Enter LDAP Password:
dn: CN=Marianne Sharp,OU=Users,OU=Standard
changetype: modify
add: jpegPhoto
jpegPhoto:< http://goose/images/staff/msharp.jpg
Attempted first on Server2. It gives me the following error message;
ldapmodify: invalid format (line 4) entry: "CN=Marianne Sharp,OU=Users,OU=Standard
Attempt on Server1 loads the picture without error.
Anyone have any ideas on what the problem could be?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You do need to install the libfetch library to make it to work. Sorry I don't use "Gentoo Linux "
can't tell you where to download it, but you can do a search on the web, or have a look at
your Linux CD to get it install.
PS: The guys wrote the tutorial was having the same trouble as you. in the worst case, you can use the work around solution. download the file to your box, and point to the file.
also have a look at:
http://www.openldap.org/its/index.cgi/Software%20Enhancements?id=3636;page=1
can't tell you where to download it, but you can do a search on the web, or have a look at
your Linux CD to get it install.
PS: The guys wrote the tutorial was having the same trouble as you. in the worst case, you can use the work around solution. download the file to your box, and point to the file.
also have a look at:
http://www.openldap.org/its/index.cgi/Software%20Enhancements?id=3636;page=1
ASKER
I already googled it, and checked the Gentoo distro before the previous comment. Everything I have found suggests that there is no libfetch for Linux. We can work around it by using file:// URLs in this case. Thanks for your help.
You are welcome!
ASKER
checking fetch(3) library... no
configure: error: no suitable API for --with-fetch=yes
The libfetch library is standard on FreeBSD, but is it ported to Linux? Can you point me to a package? On FreeBSD fetch(1) uses it, but on Gentoo Linux fetch(1) uses the http-fetcher library. I'm not sure about what other Linux distros use. Openldap fails to recognise http-fetcher.