Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Can i save a file to ldap server?

Reply
Thread Tools

Can i save a file to ldap server?

 
 
sk
Guest
Posts: n/a
 
      03-14-2007
Is it possible to save a file in the ldap server?

I think in ladap we can search through a simple metadata but not files.

Shin


 
Reply With Quote
 
 
 
 
Nigel Wade
Guest
Posts: n/a
 
      03-15-2007
sk wrote:

> Is it possible to save a file in the ldap server?


Do you mean to the LDAP server's filesystem, or within the LDAP servers
directory (directory in this context meaning the LDAP servers data store, not
the directory in which it is located in the underlying filesystem - terminology
is confusing when the same word is used for entirely different things)? You
could save the file as an object in the LDAP directory itself, if it isn't too
large.

>
> I think in ladap we can search through a simple metadata but not files.


The LDAP server allows you to search and add information into its own directory.
But there is no access to the LDAP server's underlying filesystem.

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail :
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
 
Reply With Quote
 
 
 
 
Brandon McCombs
Guest
Posts: n/a
 
      03-17-2007
sk wrote:
> Is it possible to save a file in the ldap server?
>
> I think in ladap we can search through a simple metadata but not files.
>
> Shin
>
>


Assuming you mean the LDAP server's underlying database, then yes, you
can can save files in it. That's how you can save jpg files in the
jpegPhoto attribute. Binary data has to be stored in binary attributes,
which in Java you would use a byte[] data type for handling that type of
data. I've never attempted to store plaintext files in an LDAP database
and that isn't what they are supposed to be used for anyway. If you have
textual data then put it in attributes because the plaintext files can't
be searched while they are in the LDAP database. They would have to be
retrieved one at a time and then searched by the client; not very
efficient to say the least.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
python-ldap/win32 or python/ldap/win32 rcmn Python 1 11-06-2006 11:47 PM
Need to wrtie LDAP class to *answer* LDAP queries. junk1@davidbevan.co.uk Java 1 02-21-2006 09:59 PM
ruby-ldap: uninitialized constant LDAP::LDAP_CONTROL_PAGEDRESULTS James Hughes Ruby 4 12-13-2005 11:46 PM
[ANN] Ruby/LDAP 0.9.1: LDAP API (RFC1823) library. Ian Macdonald Ruby 0 03-15-2005 11:23 PM
using LDAP Controls in ruby-ldap Jason Wold Ruby 5 11-07-2004 03:35 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57