Could someone please explain LDAP?

前端 未结 10 1291
旧巷少年郎
旧巷少年郎 2021-01-30 20:01

I often hear things like \"Can we load our employee info using LDAP?\" Yet, the title \"Lightweight Directory Access Protocol\" makes me think of it as a protocol rather than a

相关标签:
10条回答
  • 2021-01-30 20:39

    Yes, LDAP (Lightweight Directory Access Protocol) is a protocol that runs on TCP/IP.

    It is used to access directory services, like Microsoft's Active Directory, or Sun ONE Directory Server.

    A directory service is a kind of database or data store, but not necessarily a relational database. The structure is usually much simpler, storing hierarchical collections of name-value pairs, e.g. lastName=Smith, firstName=John.

    0 讨论(0)
  • 2021-01-30 20:40

    LDAP is usually used as authentication database. Let's say you have CMS product you sell as Software-as-a-Service. So user gets CMS and you maintain it etc.

    So, you install it to examplecustomer1.com, examplecustomer2.org, examplecustomer3.net (one software per domain). Now you have THREE user databases to maintain. So you add yourself to all systems as admin and customers accounts as well.

    Then you discover LDAP. You add LDAP support to your product and now you have one central database of users. You can login as admin to all systems with your own ONE username and password. CMS system still contains user database and rights for each user but username is now used as reference to LDAP database and password field is deleted from CMS database schema.

    0 讨论(0)
  • 2021-01-30 20:43

    LDAP is a protocol for querying user directories. For example, Active Directory or Novell eDirectory both support LDAP. It is also, to a degree a syntax for doing such queries, like how SQL is a querying language for querying databases.

    An LDAP command could look like

    (givenName=Mike)

    And it would return all Mikes in the directory.

    0 讨论(0)
  • 2021-01-30 20:43

    What is LDAP:

    All LDAP is a communication protocol which Microsoft implemented for the Active directory directory service and is used for other NTDS.DIT files. Lets get the confusion out of the way. NTDS.DIT contains Active Directory database. To ACCESS the data base you need the communication protocol LDAP. Thats it. So again NTDS.DIT is a simple database i.e ADDS Database (Active Director Directory Services) How do we access it?

    We access it using LDAP.

    lets use LDAP quick example.
    C:/users/data.doc

    or

    LDAP Syntax

    CN=Bob,OU=Users,DC=Youtube,DC=Com

    CN = Canonical Name (object or name)

    OU = Organizational Unit (Folder in Active directory)

    DC = Domain Controller (Where it is)

    Other info: Active directory is database based on the X.500 Standard which contains all the AD object which is the NTDS.DIT file.

    0 讨论(0)
提交回复
热议问题