Giter VIP home page Giter VIP logo

ldapsf's Introduction

ldapsf

A small C++ library that implements almost complete LDAP Search Filter grammar as defined in RFC 2254 and a search facility inside a vector of key-value mapped data.

Features:

  • Formal Search Filter BNF grammar using header-only boost::spirit library. Extensible filter grammar is not implemented.
  • The parser supports Unicode and hex-encoded Unicode rules.
  • The search facility makes use of the ICU internationalization library with adjustable collation levels which allows searching data in a non-strict way when case and diacritics are ignored.

There is a test example inside sub-directory test/ showing how to use the library. In this example, data is read from a JSON file records.json. This requires linkage against jsoncpp library. To compile the example, run

g++ -std=c++11 -o test test.cpp -lldapsf -ljsoncpp

in a terminal. The data records in the test file contain UTF-8 encoded samples of key-value maps with Russian names, surnames and optional grades and extra marks. Inside the source code of test.cpp a search filter is created to show how the ldapsf library can be used. Run the test with command

./test

ldapsf's People

Contributors

lyokha avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

snargit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.