Hi guys, as far as I read I have recognized that ldb files are a sort of ldap databases. Can I access this data with a user tool? ldapsearch -H ldapi:/// or similar...
My question is motivated only by curiosity. I'm interested in learning "hands on" the data structure.
Thanks Marco
On Wed, Feb 08, 2012 at 03:09:08PM +0100, Marco Pizzoli wrote:
Hi guys, as far as I read I have recognized that ldb files are a sort of ldap databases. Can I access this data with a user tool? ldapsearch -H ldapi:/// or similar...
My question is motivated only by curiosity. I'm interested in learning "hands on" the data structure.
The tool you are looking for is called ldbsearch and can be found in ldb-tools package.
HTH
bye, Sumit
Thanks Marco
sssd-devel mailing list sssd-devel@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/sssd-devel
Hi Sumit,
On Wed, Feb 8, 2012 at 3:19 PM, Sumit Bose sbose@redhat.com wrote:
On Wed, Feb 08, 2012 at 03:09:08PM +0100, Marco Pizzoli wrote:
Hi guys, as far as I read I have recognized that ldb files are a sort of ldap databases. Can I access this data with a user tool? ldapsearch -H ldapi:/// or similar...
My question is motivated only by curiosity. I'm interested in learning "hands on" the data structure.
The tool you are looking for is called ldbsearch and can be found in ldb-tools package.
HTH
Yes, it helped me a lot! Now I'm able to browser my cache db. Are you aware of a graphical tool (similar to PhpLdapAdmin or LdapAccountManager) which supports tdb databases?
Thanks again Marco
On Wed, 2012-02-08 at 19:59 +0100, Marco Pizzoli wrote:
Hi Sumit,
On Wed, Feb 8, 2012 at 3:19 PM, Sumit Bose sbose@redhat.com wrote: On Wed, Feb 08, 2012 at 03:09:08PM +0100, Marco Pizzoli wrote: > Hi guys, > as far as I read I have recognized that ldb files are a sort of ldap > databases. > Can I access this data with a user tool? ldapsearch -H ldapi:/// or > similar... > > My question is motivated only by curiosity. I'm interested in learning > "hands on" the data structure.
The tool you are looking for is called ldbsearch and can be found in ldb-tools package. HTH
Yes, it helped me a lot! Now I'm able to browser my cache db. Are you aware of a graphical tool (similar to PhpLdapAdmin or LdapAccountManager) which supports tdb databases?
No, at most you can use ldbedit, but be very careful.
Simo.
Hi Simo,
On Wed, Feb 8, 2012 at 8:35 PM, Simo Sorce simo@redhat.com wrote:
On Wed, 2012-02-08 at 19:59 +0100, Marco Pizzoli wrote:
Hi Sumit,
On Wed, Feb 8, 2012 at 3:19 PM, Sumit Bose sbose@redhat.com wrote: On Wed, Feb 08, 2012 at 03:09:08PM +0100, Marco Pizzoli wrote: > Hi guys, > as far as I read I have recognized that ldb files are a sort of ldap > databases. > Can I access this data with a user tool? ldapsearch -H ldapi:/// or > similar... > > My question is motivated only by curiosity. I'm interested in learning > "hands on" the data structure.
The tool you are looking for is called ldbsearch and can be found in ldb-tools package. HTH
Yes, it helped me a lot! Now I'm able to browser my cache db. Are you aware of a graphical tool (similar to PhpLdapAdmin or LdapAccountManager) which supports tdb databases?
No, at most you can use ldbedit, but be very careful.
As far as I can see, ldbedit is a raw datafile editor. Indeed I find that I can manipulate the index definitions. In what way can this help me in having a logic/tree visualization of the tree?
Another couple of questions on this topic: - ldb files are concurrency safe? What if I ldbmodify a file.ldb while it is already open by (let's say) another ldbmodify? - *just for experimenting*: is there a native way to possibly import the ldif produced from ldbsearch in a real LDAP server? Does native standard ldap schemas permit me to import/ldapadd objectClasses used by sssd ldb?
Thanks again Marco
On Wed, 2012-02-08 at 21:28 +0100, Marco Pizzoli wrote:
Hi Simo,
As far as I can see, ldbedit is a raw datafile editor. Indeed I find that I can manipulate the index definitions. In what way can this help me in having a logic/tree visualization of the tree?
It doesn't let you visualize a tree, but it makes it easier to read/modify objects in batch.
Another couple of questions on this topic:
- ldb files are concurrency safe? What if I ldbmodify a file.ldb while
it is already open by (let's say) another ldbmodify?
Yes ldb files use both locking and transactions and can be safely modified by multiple processes at the same time. We indeed rely on that property, as you can see our ldb files are opened by multiple processes (providers and responders simultaneously).
- *just for experimenting*: is there a native way to possibly import
the ldif produced from ldbsearch in a real LDAP server? Does native standard ldap schemas permit me to import/ldapadd objectClasses used by sssd ldb?
ldb will produce a valid ldif file, but it is schemaless. In order to be able to import those ldif file in an actual ldap server you need to be able to disable schema checking on the server.
Simo.
On Wed, Feb 08, 2012 at 07:59:04PM +0100, Marco Pizzoli wrote:
Hi Sumit,
On Wed, Feb 8, 2012 at 3:19 PM, Sumit Bose sbose@redhat.com wrote:
On Wed, Feb 08, 2012 at 03:09:08PM +0100, Marco Pizzoli wrote: > Hi guys, > as far as I read I have recognized that ldb files are a sort of ldap > databases. > Can I access this data with a user tool? ldapsearch -H ldapi:/// or > similar... > > My question is motivated only by curiosity. I'm interested in learning > "hands on" the data structure. The tool you are looking for is called ldbsearch and can be found in ldb-tools package. HTH
Yes, it helped me a lot! Now I'm able to browser my cache db. Are you aware of a graphical tool (similar to PhpLdapAdmin or LdapAccountManager) which supports tdb databases?
Thanks again Marco
To the best of my knowledge, there is no such tool.
sssd-devel@lists.fedorahosted.org