{
    "componentChunkName": "component---src-templates-issues-tsx",
    "path": "/issues/353",
    "result": {"data":{"issuesJson":{"id":"af51f182-cff1-54bd-940a-5698686218c7","title":"lldap/lldap: 一个基于 Rust 编写的轻量 ldap 服务端，提供了简单的 UI 界面，注意，它没有实现完整的 ldap。","number":353,"bodyHTML":"<div align=\"center\" dir=\"auto\">\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\"><img src=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\" width=\"100%\" height=\"3\" data-animated-image=\"\" data-canonical-src=\"https://cdn.jsdelivr.net/gh/eryajf/tu@main/img/image_20240420_214408.gif\" style=\"max-width: 100%; height: auto; max-height: 3px;\"></a><br><br></p>\n<markdown-accessiblity-table><table role=\"table\">\n<thead>\n<tr>\n<th align=\"right\">Repos</th>\n<th align=\"left\"><a href=\"https://github.com/lldap/lldap\">lldap/lldap</a></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td align=\"right\"><strong>Views</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/72b3c0c576a75bea653c0115094193d39040c5afe556f1116ac893de3c4b1861/68747470733a2f2f76696577732e77686174696c656172656e65642e746f6461792f76696577732f6769746875622f6c6c6461702f6c6c6461702e737667\" alt=\"views\" data-canonical-src=\"https://views.whatilearened.today/views/github/lldap/lldap.svg\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>Stars</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/c8dbfa9ec145f6684b0dc75e5cd55f84337c91f479c629ae54bc4859eb10628e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c6c6461702f6c6c6461703f636f6c6f723d663266303864266c6f676f3d556e64657274616c65266c6f676f436f6c6f723d656234363330\" alt=\"stars\" data-canonical-src=\"https://img.shields.io/github/stars/lldap/lldap?color=f2f08d&amp;logo=Undertale&amp;logoColor=eb4630\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>Forks</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/1f993ddd3be4dfc247aa5513c6ef76d76cf19b843c92f006201ac7d3c2b598de/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6c6c6461702f6c6c6461703f636f6c6f723d626138366562266c6f676f3d48616e647368616b65266c6f676f436f6c6f723d656136616136\" alt=\"forks\" data-canonical-src=\"https://img.shields.io/github/forks/lldap/lldap?color=ba86eb&amp;logo=Handshake&amp;logoColor=ea6aa6\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>License</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/6cf4b0ade17d6f56a74779e111c95767f28ec64032e69c4ce2552d0cbe062ec2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c6c6461702f6c6c6461703f6c6f676f3d64617461253341696d616765253246706e672533426261736536342532436956424f5277304b47676f414141414e53556845556741414144414141414177434159414141425841766d48414141414358424957584d41414173544141414c457745416d70775941414144336b6c45515652346e4f335953557a5555426748384a726f57567255474a66456d3773584e63534446784d544c327069347348456778654e526f77586770455742445552522532424e414e4f4b4f4b36366f6f4b4a4742586545475263574163455646475152484677516d483525324630774861655748493944554455354c356b6e6568644f62377a66652532423139636e434a47495243516945596c514237594a4979474c38616f73756c565a36695246516a69474b6b7564576735614c6c704f70704e586e665071773555304459524a6d56786a4367464633424c755a476d416f5655694b4541726d583744375553677351706f72674761336748664b34483663754262435644334771683141352532424c6745253242467749656e514d306a6f446f66714c6f48564e7742796d384370546e416d327a51713073676478624964515a556c416b7150415a3664676a303541446f59526f6f66792532466f5869726f376b3551586a4c6f70677a4b69514e6c4c4461716f4967754577426a7a7150355066446a45394479495879493633464d547751464d43567271774e61763451666f52673538514625324266724d485172454b3844546f434d714e4179574e4866786d54526f4c4f726d5352566747744466714345715a4f4851727a6f34706243557341333431365169364551394b476a6345465267484f724f4b6e5536574162396247455459656b4b7843766a546167394534706a653534446b3551503862624d4859762532464333756541654a6b50304f4778422532424a70426e4172595238455951516e6f4e31414e4661426e5050356c385372736559514c303641646b30464a5938484f5761424d6c6541486a683068506f73497a6c6f3876304125324633345a694f6548726130714b52504d5653493774762532423932747725324676687855654252713456454c674d376642714b354770526d6f514c584e7075625475367a6f4e52706754386e5051627138347764253246494375767978694b4871694e41664933774d367549684271476b4c696977414f734b44714f68743749747239567938536a52424557667941627225324668523142667056514664484a42253246423268683778376a36517077435665655951326b72554235436c636a3641326d3067576a25324244306d4c34397a573563517943484c4e37726a6c6d6d6174457958582532464372547a412532466f51785a6b576c39474a5443566f25324279546a3837253242346769504b6376307149486f344156344430565a727251493334706e70524d36357875652532467a417265453425324654253246536f676c664542794d7369517441546c4c3352414a355948725378365a44665337307337754d486842705225324659423573305057366f455270316236253246667252684b3353444c35546965364f515548516c5133735644752532427a50636b397657453973747225324236496a533967486d5750616861444a25324277434b364e494242587348423948796b587378774470686c436d416476706c6162554a4e6e5a504239342532464e7436784f6538587a4562503257684d335741673147756236744825324233513150673337365239713475716c6e6f36676448476a444f5139306562303141484d3672596975554a314f713472344656756a35765239427a4d3957674e764f7977446869495951467667626366774166774d764863615067425041253246447948476a50624e394138616d6562636477416444354e6633373574787165774e5552656f797677424958594c645170576c6877465771745061435044334173467541535636717171496c62304a766b564331464c39576b4c55556c55574b337a585a4c46432532423125324642726f46746f364f7358497545594a5034447a7a5732594656316f4a614141414141456c46546b5375516d4343\" alt=\"license\" data-canonical-src=\"https://img.shields.io/github/license/lldap/lldap?logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAD3klEQVR4nO3YSUzUUBgH8JroWVrUGJfEm7sXNcSDFxMTL2pi4sHEgxeNRowXgpEWBDURR%2BNANOKOK66ooKJGBXeEGRcWAcEVFGQRHFwQmH5%2F0wHaeWHI9DUDU5L5knehdOb7zfe%2B19cnCJGIRCQiEYlQB7YJIyGL8aosulVZ6iRFQjiGKkudWg5aLlpOppNXnfPqw5U0DYRJmVxjCgFF3BLuZGmAoVUiKEArmX7D7USgsQporgGa3gHfK4H6cuBbCVD3Gqh1A5%2BLgE%2BFwIenQM0joDofqLoHVNwBym8CpTnAm2zQq0sgdxbIdQZUlAkqPAZ6dgj05ADoYRoofy%2FoXiro7k5QXjLopgzKiQNlLDaqoIguEwBjzqP5PfDjE9DyIXyI63FMTwQFMCVrqwNav4QfoRg58QF%2BfrMHQrEK8DToCMqNAyWNHfxmTRoLOrmSRVgGtDfqCEqZOHQrzo4pbCUsA3416Qi6EQ9KGjcEFRgHOrOKnU6WAb9bGETYekKxCvjTag9E4pje54Dk5QP8bbMHYv%2FC3ueAeJkP0OGxB%2BJpBnArYR8EYQQnoN1ANFaBnPP5l8SrseYQL06Adk0FJY8HOWaBMleAHjh0hPosIzlo8v0A%2F34ZiOeHra0qKRPMVSI7tv%2B92tw%2FvhxUeBRq4VELgM7fBqK5GpRmoQLXNpubTu6zoNRpgT8nPQbq84wd%2FICuvyxiKHqiNAfI3wM6uIhBqGkLiiwAOsKDqOht7Itr9Vy8SjRBEWfyAbr%2FhR1BfpVQFdHJB%2FB2hh7x7j6QpwCVeeYQ2krUB5Clcj6A2m0gWj%2BD0mL49zW5cQyCHLN7rjlmmatEyXX%2FCrTzA%2FoQxZkWl9GJTCVo%2ByTj87%2B4giPKcv0qIHo4AV4D0VZrrQI34pnpRM65xue%2FzAreE4%2FT%2FSoglfEByMsiQtATlL3RAJ5YHrSx6ZDfS70s7uMHhBpR%2FYB5s0PW6oERp1b6%2FfrRhK3SDL5Tie6OQUHQlQ3sVDu%2BzPck9vWE9str%2B6IjS9gHmWPahaDJ%2BwCK6NIBBXsHB9HykXsxwDphlCmAdvplabUJNnZPB94%2FNt6xOe8XzEbP2WhM3WAg1Gub6tH%2B3Q1Pg376R9q4uqlno6gdHGjDOQ90eb01AHM6rYiuUJ1Oq4r4FVuj5vR9BzM9WgNvOywDhiIYQFvgbcfwAfwMvHcaPgBPA%2FDyHGjPbN9A8amebcdwAdD5Nf375txqewNUReoyvwBIXYLdQpWlhwFWqtPaCPD3AsFuASV6qqqIlb0JvkVC1FL9WkLUUlUWK3zXZLFC%2B1%2FBroFto6OsXIuEYJP4DzzW2YFV1oJaAAAAAElFTkSuQmCC\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>UpdatedAt</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/e0727adfd5a298e5a9e4c188973c305e800ff05b0a79ce610c551b1ad25b7712/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f6c6c6461702f6c6c6461703f646973706c61795f74696d657374616d703d636f6d6d6974746572266c6f676f3d64617461253341696d616765253246706e672533426261736536342532436956424f5277304b47676f414141414e5355684555674141414234414141416543415941414141374d4b3669414141414358424957584d41414173544141414c457745416d7077594141414648556c45515652346e4c5658375539615678776d3236646c582532466468627825324232253246516e626b7655627264554151674a4a496655444e574454546d4f76314651554661504a346b7573725630314a7431734e70637453327533626f745a746d786439744a5346536f714b71494635625944464c436f76436c656673747a4a387758524c445a4c7a6e6b634f343535376e3364332532466e655a3472454f515a74315771462532423858467234253242664f4c4565326a6f59307a776638546f795a50766a45676b4c592532426b306d6d72584f36644b696e787a476b30666a5430782532425279723055716e6359637a4d317263347451253242497270324c4758646f344e4334567657715453373277716c632532427231334f527269364b6458646e624f484c6c776c7a4a70524b6e3657342532424b36706f4f434e6e494166486a253246253242776168495a4234764b6e715a6630714a704e49716c2532467638545530634e6c3572627963337730516e54703379324c54614a374d314e617844723266526e315370504736476961323174664533345463614f617931694d55564f5146624659714957536f31573854694156616e43306576584f4542375770313448466232327a453566714c4f433545524c515769644e614e49347545636339693768634a6c644868324e57725135674464624f6c7061756d49754c62326174415144506e7a3062384e6257636d785656524a33486d7870536377777a4f4a6d4b44524765384c6c435a444c4739673754496e5631516c376462586256316533675430574b697243466f6d6b5079767758466c5a474a4f6a563625324253743634757564445a4f55354555636f782532464d455144567674364d62634e3237593341797a687633737061557242365a3971724a534f3139657a6a387032704c426b4a792532426343484a7857493567573574636652527a31645531394766476b6f7539505a4f34736d52396a4746777065783444793362766e6d4b79706f74625531335669646a71595a68726a343972764d457425324625324659714c7a396430304e6a57253246637a67796f394f35317a7336614e6c6f354644747530445a675146686c47584a30644241446f4e6864367576703657686f617967374e394c564748386d443462253246486e667455516f4e4734764c51306769784d716c5725324234714f6a744e48446733723166365969525347785279375576714c62395534716b716e78504f4e7661356c447048723125324279794b524e4b57425a793565644d554842326d3572792532422532424551772532427a6766347a6f39253246306f634e3357527a4c4277344a2532424a7950574372716d4967475974554f735744346f785a46516f50556a4770564871493425324661666b51504336665a5165654d31253242764c7549516e6a754257514444437363726d485039656f4e5041744271664f6e5875614b25324268364a45624772732532427076764d6d78654962683836336162565065597953456f39464a48704e4d464a59253242503563575a6b6667374f3174537759436553514c54593345385130392532464256504a556c78516a7368543142736343593032723955445542667643484236367063665041336c794165336e6772332532463437584467614a7a736c7937787741364e5a746c555550437541487161536a5549502532427375653842525741432532464e6651374a5a505a35397330476a3756747049537a34685125324243706658474d4b685a63764c70554b7866574d386f68766637702532464f446a4842666356463849736b383267314648796b63564645253242555a414158343761452532464d6c34504f3530506e75683025324678346e6d637957507364774468427836436d6b4c562532466746446a594b784f4a4f4674623077517949684c39527943774b33414f664947703159464542686e4d4a634c525745624b644b516f55366e63545a6b494544696341792532463831645675454d3552775066657934784f7830496b25324649324e6e466b692532425761664f6f464959466367595a43797864376543556a626334416d46363566742532466b4d686b336f25324235686337734d4a79716a4a45477659466151464972375930775077384246415925324236253242766d6b3377367a7a5275444d6d5a5652736668385274413075455453443775434254364459514e36697665553066706b594c6a453671725672744f78654e4b553954484c5a4a396b4255324a427342685635416976422532466f4b61514e4b675043427744596149665a4334616454684f71463457454e56694c4a77566f586f62664c424b56773637414f6154734c6336355461564b32317651344c613939654b6359673576627873624f627a5451394e37554b4467554f3177446a6944494942736868357a746733396e514d4c535a4248344f7a424f55444551586d323036643366634c67737762585141345068634b336e6873775531427a3877765130395248472532466f597933656a6677424e6d746f59714c4130586741414141424a52553545726b4a676767253344253344266c6162656c3d557064617465644174\" alt=\"last-commit\" data-canonical-src=\"https://img.shields.io/github/last-commit/lldap/lldap?display_timestamp=committer&amp;logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHUlEQVR4nLVX7U9aVxwm26dlX%2Fdhbx%2B2%2FQnbkvUbrdUAQgJJIfUDNWDTTmOv1FQUFaPJ4kusrV01Jt1sNpctS2u3botZtmxd9tJSFSoqKqIF5bYDFLCovClefstzJ8wXRLDZLznkcO4557n3d3%2FneZ4rEOQZt1WqF%2B8XFr4%2BfOLEe2joY0zwf8ToyZPvjEgkLY%2Bk0mmrXO6dKinxzGk0fjT0x%2BRyr0UqncYczM1rc4tQ%2BIrp2LGXdo4NC4VvWqTS72wqlc%2Br13ORri6KdXdnbOHLlwlzJpRKn6W4%2BK6poOCNnIAfHj%2F%2BwahIZB4vKnqZf0qJpNIql%2Fv8TU0cNl5rbyc3w0QnTp3y2LTaJ7M1NaxDr2fRn1SpPG6Gia21tfE34TcaOay1iMUVOQFbFYqIWSo1W8TiAVanC0evXOEB7Wp14HFb22zE5fqLOC5ERLQWidNaNI4uEcc9i7hcJldHh2NWrQ5gDdbOlpaumIuLb2atAQDPnz0b8NbWcmxVVRJ3HmxpScwwzOJmKDRGe8LlCZDLG9g7TInV1Ql7dbXbV1e3gT0WKirCFomkPyvwXFlZGJOjV6%2BSt64uudDZOU5EUcox%2FMEQDVvt6MbcN27Y3Ayzhv3spaUrB6Z9qrJSO19ezj8p2pLBkJy%2BcCHJxWI5gW5tcfRRz1dU19GfGkou9PZO4smR9jGFwpex4Dy3bvnmKypotbU13VidjqYZhrj49rvMEt%2F%2FYqLz9d00NjW%2Fczgyo9O51zs6aNlo5FDtu0DZgQFhlGXJ0dBADoNhd6uvp6Whoayg7N9LVGH8mD4b%2FHnftUQoNG4vLQ0gixMqlW%2B4qOjtNHDg3r1f6YiRSGxRy7UvqLb9U4qkqnxPONva5lDpHr1%2ByyKRNKWBZy5edMUHB2m5ry%2B%2BEQw%2Bzgf4zo9%2F0ocN3WRzLBw4J%2BJyPWCrqmIgGYtUOsWD4oxZFQoPUjGpVHqI4%2FafkQPC6fZQeeM1%2BvLuIQnjuBWQDDCscrmHP9eoNPAtBqfOnXuaK%2Bh6JEbGrs%2BpvvMmxeIbh863abVPeYySEo9FJHpNMFJY%2BP5cWZkfg7O1tSwYCeSQLTY3E8Q09%2FBVPJUlxQjshT1BscCY02r9UDUBfvCHB66pcfPA3lyAe3ngr3%2F47XDgaJzsly7xwA6NZtlUUPCuAHqaSjUIP%2Bsue8BRWAC%2FNfQ7JZPZ59s0Gj7VtpISz4hQ%2BCpfXGMKhZcvLpUKxfWM8ohvf7p%2FODjHBfcVF8Isk82g1FHykcVFE%2BUZAAX47aE%2FMl4PO50Pnuh0%2Fx4nmcyWPsdwDhBx6CmkLV%2FgFDjYKxOJOFtb0wQyIhL9RyCwK3AOfIGp1YFEBhnMJcLRWEbKdKQoU6ncTZkIEDicAy%2F81dVuEM5RwPfey4xOx0Ik%2FI2NnFki%2BWafOoFIYFcgYZCyxd7eCUjbc4AmF65ft%2FkMhk3o%2B5hc7sMJyqjJEGvYFaQFIr7Y0wPw8BFAY%2B6%2Bvmk3w6zzRuDMmZVRsfh8RtA0uETSD7uCBT6DYQN6iveU0fpkYLjE6qrVrtOxeNKU9THLZJ9kBU2JBsBhV5AivB%2FoKaQNKgPCBwDYaIfZC4adThOqF4WENViLJwVoXobfLBKVw67AOaTsLc65TaVK21vQ4La99eKcYg5vbxsbObzTQ9N7UKDgUO1wDjiDIIBshh5ztg39nQMLSZBH4OzBOUDEQXm206d3fcLgswbXQA4PhcK3nhswU1Bz8wvQ09RHG%2FoYy3ejfwBNmtoYqLA0XgAAAABJRU5ErkJggg%3D%3D&amp;label=UpdatedAt\" style=\"max-width: 100%;\"></a></td>\n</tr>\n<tr>\n<td align=\"right\"><strong>CreatedAt</strong></td>\n<td align=\"left\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/c7877a1fa5fc43c21727e4d3b520016e82f2cb00410ba6c941dba7f73a6b0976/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f637265617465642d61742f6c6c6461702f6c6c6461703f6c6f676f3d64617461253341696d616765253246706e672533426261736536342532436956424f5277304b47676f414141414e5355684555674141414234414141416543415941414141374d4b3669414141414358424957584d41414173544141414c457745416d7077594141414648556c45515652346e4c5658375539615678776d3236646c582532466468627825324232253246516e626b7655627264554151674a4a496655444e574454546d4f76314651554661504a346b7573725630314a7431734e70637453327533626f745a746d786439744a5346536f714b71494635625944464c436f76436c656673747a4a387758524c445a4c7a6e6b634f343535376e3364332532466e655a3472454f515a74315771462532423858467234253242664f4c4565326a6f59307a776638546f795a50766a45676b4c592532426b306d6d72584f36644b696e787a476b30666a5430782532425279723055716e6359637a4d317263347451253242497270324c4758646f344e4334567657715453373277716c632532427231334f527269364b6458646e624f484c6c776c7a4a70524b6e3657342532424b36706f4f434e6e494166486a253246253242776168495a4234764b6e715a6630714a704e49716c2532467638545530634e6c3572627963337730516e54703379324c54614a374d314e617844723266526e315370504736476961323174664533345463614f617931694d55564f5146624659714957536f31573854694156616e43306576584f4542375770313448466232327a453566714c4f433545524c515769644e614e49347545636339693768634a6c644868324e57725135674464624f6c7061756d49754c62326174415144506e7a3062384e6257636d785656524a33486d7870536377777a4f4a6d4b44524765384c6c435a444c4739673754496e5631516c376462586256316533675430574b697243466f6d6b5079767758466c5a474a4f6a563625324253743634757564445a4f55354555636f782532464d455144567674364d62634e3237593341797a687633737061557242365a3971724a534f3139657a6a387032704c426b4a792532426343484a7857493567573574636652527a31645531394766476b6f7539505a4f34736d52396a4746777065783444793362766e6d4b79706f74625531335669646a71595a68726a343972764d457425324625324659714c7a396430304e6a57253246637a67796f394f35317a7336614e6c6f354644747530445a675146686c47584a30644241446f4e6864367576703657686f617967374e394c564748386d443462253246486e667455516f4e4734764c51306769784d716c5725324234714f6a744e48446733723166365969525347785279375576714c62395534716b716e78504f4e7661356c447048723125324279794b524e4b57425a793565644d554842326d3572792532422532424551772532427a6766347a6f39253246306f634e3357527a4c4277344a2532424a7950574372716d4967475974554f735744346f785a46516f50556a4770564871493425324661666b51504336665a5165654d31253242764c7549516e6a754257514444437363726d485039656f4e5041744271664f6e5875614b25324268364a45624772732532427076764d6d78654962683836336162565065597953456f39464a48704e4d464a59253242503563575a6b6667374f3174537759436553514c54593345385130392532464256504a556c78516a7368543142736343593032723955445542667643484236367063665041336c794165336e6772332532463437584467614a7a736c7937787741364e5a746c555550437541487161536a5549502532427375653842525741432532464e6651374a5a505a35397330476a3756747049537a34685125324243706658474d4b685a63764c70554b7866574d386f68766637702532464f446a4842666356463849736b383267314648796b63564645253242555a414158343761452532464d6c34504f3530506e75683025324678346e6d637957507364774468427836436d6b4c562532466746446a594b784f4a4f4674623077517949684c39527943774b33414f664947703159464542686e4d4a634c525745624b644b516f55366e63545a6b494544696341792532463831645675454d3552775066657934784f7830496b25324649324e6e466b692532425761664f6f464959466367595a43797864376543556a626334416d46363566742532466b4d686b336f25324235686337734d4a79716a4a45477659466151464972375930775077384246415925324236253242766d6b3377367a7a5275444d6d5a5652736668385274413075455453443775434254364459514e36697665553066706b594c6a453671725672744f78654e4b553954484c5a4a396b4255324a427342685635416976422532466f4b61514e4b675043427744596149665a4334616454684f71463457454e56694c4a77566f586f62664c424b56773637414f6154734c6336355461564b32317651344c613939654b6359673576627873624f627a5451394e37554b4467554f3177446a6944494942736868357a746733396e514d4c535a4248344f7a424f55444551586d323036643366634c67737762585141345068634b336e6873775531427a3877765130395248472532466f597933656a6677424e6d746f59714c4130586741414141424a52553545726b4a676767253344253344266c6162656c3d437265617465644174\" alt=\"create-at\" data-canonical-src=\"https://img.shields.io/github/created-at/lldap/lldap?logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHUlEQVR4nLVX7U9aVxwm26dlX%2Fdhbx%2B2%2FQnbkvUbrdUAQgJJIfUDNWDTTmOv1FQUFaPJ4kusrV01Jt1sNpctS2u3botZtmxd9tJSFSoqKqIF5bYDFLCovClefstzJ8wXRLDZLznkcO4557n3d3%2FneZ4rEOQZt1WqF%2B8XFr4%2BfOLEe2joY0zwf8ToyZPvjEgkLY%2Bk0mmrXO6dKinxzGk0fjT0x%2BRyr0UqncYczM1rc4tQ%2BIrp2LGXdo4NC4VvWqTS72wqlc%2Br13ORri6KdXdnbOHLlwlzJpRKn6W4%2BK6poOCNnIAfHj%2F%2BwahIZB4vKnqZf0qJpNIql%2Fv8TU0cNl5rbyc3w0QnTp3y2LTaJ7M1NaxDr2fRn1SpPG6Gia21tfE34TcaOay1iMUVOQFbFYqIWSo1W8TiAVanC0evXOEB7Wp14HFb22zE5fqLOC5ERLQWidNaNI4uEcc9i7hcJldHh2NWrQ5gDdbOlpaumIuLb2atAQDPnz0b8NbWcmxVVRJ3HmxpScwwzOJmKDRGe8LlCZDLG9g7TInV1Ql7dbXbV1e3gT0WKirCFomkPyvwXFlZGJOjV6%2BSt64uudDZOU5EUcox%2FMEQDVvt6MbcN27Y3Ayzhv3spaUrB6Z9qrJSO19ezj8p2pLBkJy%2BcCHJxWI5gW5tcfRRz1dU19GfGkou9PZO4smR9jGFwpex4Dy3bvnmKypotbU13VidjqYZhrj49rvMEt%2F%2FYqLz9d00NjW%2Fczgyo9O51zs6aNlo5FDtu0DZgQFhlGXJ0dBADoNhd6uvp6Whoayg7N9LVGH8mD4b%2FHnftUQoNG4vLQ0gixMqlW%2B4qOjtNHDg3r1f6YiRSGxRy7UvqLb9U4qkqnxPONva5lDpHr1%2ByyKRNKWBZy5edMUHB2m5ry%2B%2BEQw%2Bzgf4zo9%2F0ocN3WRzLBw4J%2BJyPWCrqmIgGYtUOsWD4oxZFQoPUjGpVHqI4%2FafkQPC6fZQeeM1%2BvLuIQnjuBWQDDCscrmHP9eoNPAtBqfOnXuaK%2Bh6JEbGrs%2BpvvMmxeIbh863abVPeYySEo9FJHpNMFJY%2BP5cWZkfg7O1tSwYCeSQLTY3E8Q09%2FBVPJUlxQjshT1BscCY02r9UDUBfvCHB66pcfPA3lyAe3ngr3%2F47XDgaJzsly7xwA6NZtlUUPCuAHqaSjUIP%2Bsue8BRWAC%2FNfQ7JZPZ59s0Gj7VtpISz4hQ%2BCpfXGMKhZcvLpUKxfWM8ohvf7p%2FODjHBfcVF8Isk82g1FHykcVFE%2BUZAAX47aE%2FMl4PO50Pnuh0%2Fx4nmcyWPsdwDhBx6CmkLV%2FgFDjYKxOJOFtb0wQyIhL9RyCwK3AOfIGp1YFEBhnMJcLRWEbKdKQoU6ncTZkIEDicAy%2F81dVuEM5RwPfey4xOx0Ik%2FI2NnFki%2BWafOoFIYFcgYZCyxd7eCUjbc4AmF65ft%2FkMhk3o%2B5hc7sMJyqjJEGvYFaQFIr7Y0wPw8BFAY%2B6%2Bvmk3w6zzRuDMmZVRsfh8RtA0uETSD7uCBT6DYQN6iveU0fpkYLjE6qrVrtOxeNKU9THLZJ9kBU2JBsBhV5AivB%2FoKaQNKgPCBwDYaIfZC4adThOqF4WENViLJwVoXobfLBKVw67AOaTsLc65TaVK21vQ4La99eKcYg5vbxsbObzTQ9N7UKDgUO1wDjiDIIBshh5ztg39nQMLSZBH4OzBOUDEQXm206d3fcLgswbXQA4PhcK3nhswU1Bz8wvQ09RHG%2FoYy3ejfwBNmtoYqLA0XgAAAABJRU5ErkJggg%3D%3D&amp;label=CreatedAt\" style=\"max-width: 100%;\"></a></td>\n</tr>\n</tbody>\n</table></markdown-accessiblity-table>\n<a href=\"https://github.com/opsre/awesome-ops\">\n</a><p dir=\"auto\"><a href=\"https://github.com/opsre/awesome-ops\"><img src=\"https://camo.githubusercontent.com/b964a36ea4078c39f603d46a29436371c7541a2f26e0228d7b21b9d9805b43d3/68747470733a2f2f736f6369616c6966792e6769742e63692f6f707372652f617765736f6d652d6f70732f696d6167653f6465736372697074696f6e3d3126666f6e743d42697474657226666f726b733d31266973737565733d31266c616e67756167653d31266c6f676f3d6874747073253341253246253246617661746172732e67697468756275736572636f6e74656e742e636f6d25324675253246313838353638303230266e616d653d31266f776e65723d31267061747465726e3d436972637569742b426f6172642670756c6c733d31267374617267617a6572733d31267468656d653d4c69676874\" alt=\"\" data-canonical-src=\"https://socialify.git.ci/opsre/awesome-ops/image?description=1&amp;font=Bitter&amp;forks=1&amp;issues=1&amp;language=1&amp;logo=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F188568020&amp;name=1&amp;owner=1&amp;pattern=Circuit+Board&amp;pulls=1&amp;stargazers=1&amp;theme=Light\" style=\"max-width: 100%;\"></a></p>\n<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\"><img src=\"https://camo.githubusercontent.com/a15b413168923d02e21292705ceaf86b92675f98e250c5c896a02ba7504a6eae/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f657279616a662f7475406d61696e2f696d672f696d6167655f32303234303432305f3231343430382e676966\" width=\"100%\" height=\"3\" data-animated-image=\"\" data-canonical-src=\"https://cdn.jsdelivr.net/gh/eryajf/tu@main/img/image_20240420_214408.gif\" style=\"max-width: 100%; height: auto; max-height: 3px;\"></a>\n</div>\n<h1 align=\"center\" dir=\"auto\">lldap - Light LDAP implementation for authentication</h1>\n<p align=\"center\" dir=\"auto\">\n<i>LDAP made easy.</i>\n</p>\n<p align=\"center\" dir=\"auto\">\n  <a href=\"https://github.com/lldap/lldap/actions/workflows/rust.yml?query=branch%3Amain\">\n    <img src=\"https://github.com/lldap/lldap/actions/workflows/rust.yml/badge.svg\" alt=\"Build\" style=\"max-width: 100%;\">\n  </a>\n  <a href=\"https://discord.gg/h5PEdRMNyP\" rel=\"nofollow\">\n    <img alt=\"Discord\" src=\"https://camo.githubusercontent.com/44a5076c0fb6526f204370d40bed7d0b86703a7aaed2a0c7e656a68c5762f6d4/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f3839383439323933353434363837363230303f6c6162656c3d646973636f7264266c6f676f3d646973636f7264\" data-canonical-src=\"https://img.shields.io/discord/898492935446876200?label=discord&amp;logo=discord\" style=\"max-width: 100%;\">\n  </a>\n  <a href=\"https://twitter.com/nitnelave1?ref_src=twsrc%5Etfw\" rel=\"nofollow\">\n    <img src=\"https://camo.githubusercontent.com/c2712c152263ec0a86c406e671545a3907ce308caf6852a11bdb024e6d6fa699/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f6e69746e656c617665313f7374796c653d736f6369616c\" alt=\"Twitter Follow\" data-canonical-src=\"https://img.shields.io/twitter/follow/nitnelave1?style=social\" style=\"max-width: 100%;\">\n  </a>\n  <a href=\"https://github.com/rust-secure-code/safety-dance/\">\n    <img src=\"https://camo.githubusercontent.com/ed5ba7b59dd75f96c13b6c491b35a18efe633a9599e8b9e28d7360de154297c6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e736166652d666f7262696464656e2d737563636573732e737667\" alt=\"Unsafe forbidden\" data-canonical-src=\"https://img.shields.io/badge/unsafe-forbidden-success.svg\" style=\"max-width: 100%;\">\n  </a>\n  <a href=\"https://app.codecov.io/gh/lldap/lldap\" rel=\"nofollow\">\n    <img alt=\"Codecov\" src=\"https://camo.githubusercontent.com/d27701ac5e87b315785041f68a40f31407ae9e90af7d5c9c252c2a87c8fc7e9b/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6c6c6461702f6c6c646170\" data-canonical-src=\"https://img.shields.io/codecov/c/github/lldap/lldap\" style=\"max-width: 100%;\">\n  </a>\n  <br>\n  <a href=\"https://www.buymeacoffee.com/nitnelave\" rel=\"nofollow\">\n    <img src=\"https://camo.githubusercontent.com/0b448aabee402aaf7b3b256ae471e7dc66bcf174fad7d6bb52b27138b2364e47/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67\" alt=\"Buy Me A Coffee\" data-canonical-src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" style=\"max-width: 100%;\">\n  </a>\n</p>\n<ul dir=\"auto\">\n<li><a href=\"#about\">About</a></li>\n<li><a href=\"#installation\">Installation</a>\n<ul dir=\"auto\">\n<li><a href=\"#with-docker\">With Docker</a></li>\n<li><a href=\"#with-podman\">With Podman</a></li>\n<li><a href=\"#with-kubernetes\">With Kubernetes</a></li>\n<li><a href=\"#from-a-package-repository\">From a package repository</a></li>\n<li><a href=\"#with-freebsd\">With FreeBSD</a></li>\n<li><a href=\"#from-source\">From source</a>\n<ul dir=\"auto\">\n<li><a href=\"#backend\">Backend</a></li>\n<li><a href=\"#frontend\">Frontend</a></li>\n</ul>\n</li>\n<li><a href=\"#cross-compilation\">Cross-compilation</a></li>\n</ul>\n</li>\n<li><a href=\"#usage\">Usage</a>\n<ul dir=\"auto\">\n<li><a href=\"#recommended-architecture\">Recommended architecture</a></li>\n</ul>\n</li>\n<li><a href=\"#client-configuration\">Client configuration</a>\n<ul dir=\"auto\">\n<li><a href=\"#compatible-services\">Compatible services</a></li>\n<li><a href=\"#general-configuration-guide\">General configuration guide</a></li>\n<li><a href=\"#integration-with-oss\">Integration with OS's</a></li>\n<li><a href=\"#sample-client-configurations\">Sample client configurations</a></li>\n<li><a href=\"#incompatible-services\">Incompatible services</a></li>\n</ul>\n</li>\n<li><a href=\"#migrating-from-sqlite\">Migrating from SQLite</a></li>\n<li><a href=\"#comparisons-with-other-services\">Comparisons with other services</a>\n<ul dir=\"auto\">\n<li><a href=\"#vs-openldap\">vs OpenLDAP</a></li>\n<li><a href=\"#vs-freeipa\">vs FreeIPA</a></li>\n<li><a href=\"#vs-kanidm\">vs Kanidm</a></li>\n</ul>\n</li>\n<li><a href=\"#i-cant-log-in\">I can't log in!</a></li>\n<li><a href=\"#discord-integration\">Discord Integration</a></li>\n<li><a href=\"#contributions\">Contributions</a></li>\n</ul>\n<h2 dir=\"auto\">About</h2>\n<p dir=\"auto\">This project is a lightweight authentication server that provides an<br>\nopinionated, simplified LDAP interface for authentication. It integrates with<br>\nmany backends, from KeyCloak to Authelia to Nextcloud and<br>\n<a href=\"#compatible-services\">more</a>!</p>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://raw.githubusercontent.com/lldap/lldap/master/screenshot.png\"><img src=\"https://raw.githubusercontent.com/lldap/lldap/master/screenshot.png\" alt=\"Screenshot of the user list page\" width=\"50%\" align=\"right\" style=\"max-width: 100%;\"></a></p>\n<p dir=\"auto\">It comes with a frontend that makes user management easy, and allows users to<br>\nedit their own details or reset their password by email.</p>\n<p dir=\"auto\">The goal is <em>not</em> to provide a full LDAP server; if you're interested in that,<br>\ncheck out OpenLDAP. This server is a user management system that is:</p>\n<ul dir=\"auto\">\n<li>simple to setup (no messing around with <code class=\"notranslate\">slapd</code>),</li>\n<li>simple to manage (friendly web UI),</li>\n<li>low resources,</li>\n<li>opinionated with basic defaults so you don't have to understand the<br>\nsubtleties of LDAP.</li>\n</ul>\n<p dir=\"auto\">It mostly targets self-hosting servers, with open-source components like<br>\nNextcloud, Airsonic and so on that only support LDAP as a source of external<br>\nauthentication.</p>\n<p dir=\"auto\">For more features (OAuth/OpenID support, reverse proxy, ...) you can install<br>\nother components (KeyCloak, Authelia, ...) using this server as the source of<br>\ntruth for users, via LDAP.</p>\n<p dir=\"auto\">By default, the data is stored in SQLite, but you can swap the backend with<br>\nMySQL/MariaDB or PostgreSQL.</p>\n<h2 dir=\"auto\">Installation</h2>\n<h3 dir=\"auto\">With Docker</h3>\n<p dir=\"auto\">The image is available at <code class=\"notranslate\">lldap/lldap</code>. You should persist the <code class=\"notranslate\">/data</code><br>\nfolder, which contains your configuration and the SQLite database (you can<br>\nremove this step if you use a different DB and configure with environment<br>\nvariables only).</p>\n<p dir=\"auto\">Configure the server by copying the <code class=\"notranslate\">lldap_config.docker_template.toml</code> to<br>\n<code class=\"notranslate\">/data/lldap_config.toml</code> and updating the configuration values (especially the<br>\n<code class=\"notranslate\">jwt_secret</code> and <code class=\"notranslate\">ldap_user_pass</code>, unless you override them with env variables).<br>\nEnvironment variables should be prefixed with <code class=\"notranslate\">LLDAP_</code> to override the<br>\nconfiguration.</p>\n<p dir=\"auto\">If the <code class=\"notranslate\">lldap_config.toml</code> doesn't exist when starting up, LLDAP will use<br>\ndefault one. The default admin password is <code class=\"notranslate\">password</code>, you can change the<br>\npassword later using the web interface.</p>\n<p dir=\"auto\">Secrets can also be set through a file. The filename should be specified by the<br>\nvariables <code class=\"notranslate\">LLDAP_JWT_SECRET_FILE</code> or <code class=\"notranslate\">LLDAP_KEY_SEED_FILE</code>, and the file<br>\ncontents are loaded into the respective configuration parameters. Note that<br>\n<code class=\"notranslate\">_FILE</code> variables take precedence.</p>\n<p dir=\"auto\">Example for docker compose:</p>\n<ul dir=\"auto\">\n<li>You can use either the <code class=\"notranslate\">:latest</code> tag image or <code class=\"notranslate\">:stable</code> as used in this example.</li>\n<li><code class=\"notranslate\">:latest</code> tag image contains recently pushed code or feature tests, in which some instability can be expected.</li>\n<li>If <code class=\"notranslate\">UID</code> and <code class=\"notranslate\">GID</code> no defined LLDAP will use default <code class=\"notranslate\">UID</code> and <code class=\"notranslate\">GID</code> number <code class=\"notranslate\">1000</code>.</li>\n<li>If no <code class=\"notranslate\">TZ</code> is set, default <code class=\"notranslate\">UTC</code> timezone will be used.</li>\n<li>You can generate the secrets by running <code class=\"notranslate\">./generate_secrets.sh</code></li>\n</ul>\n<div class=\"highlight highlight-source-yaml notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"version: &quot;3&quot;\n\nvolumes:\n  lldap_data:\n    driver: local\n\nservices:\n  lldap:\n    image: lldap/lldap:stable\n    ports:\n      # For LDAP, not recommended to expose, see Usage section.\n      #- &quot;3890:3890&quot;\n      # For LDAPS (LDAP Over SSL), enable port if LLDAP_LDAPS_OPTIONS__ENABLED set true, look env below\n      #- &quot;6360:6360&quot;\n      # For the web front-end\n      - &quot;17170:17170&quot;\n    volumes:\n      - &quot;lldap_data:/data&quot;\n      # Alternatively, you can mount a local folder\n      # - &quot;./lldap_data:/data&quot;\n    environment:\n      - UID=####\n      - GID=####\n      - TZ=####/####\n      - LLDAP_JWT_SECRET=REPLACE_WITH_RANDOM\n      - LLDAP_KEY_SEED=REPLACE_WITH_RANDOM\n      - LLDAP_LDAP_BASE_DN=dc=example,dc=com\n      - LLDAP_LDAP_USER_PASS=adminPas$word\n      # If using LDAPS, set enabled true and configure cert and key path\n      # - LLDAP_LDAPS_OPTIONS__ENABLED=true\n      # - LLDAP_LDAPS_OPTIONS__CERT_FILE=/path/to/certfile.crt\n      # - LLDAP_LDAPS_OPTIONS__KEY_FILE=/path/to/keyfile.key\n      # You can also set a different database:\n      # - LLDAP_DATABASE_URL=mysql://mysql-user:password@mysql-server/my-database\n      # - LLDAP_DATABASE_URL=postgres://postgres-user:password@postgres-server/my-database\n      # If using SMTP, set the following variables\n      # - LLDAP_SMTP_OPTIONS__ENABLE_PASSWORD_RESET=true\n      # - LLDAP_SMTP_OPTIONS__SERVER=smtp.example.com\n      # - LLDAP_SMTP_OPTIONS__PORT=465 # Check your smtp providor's documentation for this setting\n      # - LLDAP_SMTP_OPTIONS__SMTP_ENCRYPTION=TLS # How the connection is encrypted, either &quot;NONE&quot; (no encryption, port 25), &quot;TLS&quot; (sometimes called SSL, port 465) or &quot;STARTTLS&quot; (sometimes called TLS, port 587).\n      # - LLDAP_SMTP_OPTIONS__USER=no-reply@example.com # The SMTP user, usually your email address\n      # - LLDAP_SMTP_OPTIONS__PASSWORD=PasswordGoesHere # The SMTP password\n      # - LLDAP_SMTP_OPTIONS__FROM=no-reply &lt;no-reply@example.com&gt; # The header field, optional: how the sender appears in the email. The first is a free-form name, followed by an email between &lt;&gt;.\n      # - LLDAP_SMTP_OPTIONS__TO=admin &lt;admin@example.com&gt; # Same for reply-to, optional.\"><pre class=\"notranslate\"><span class=\"pl-ent\">version</span>: <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>3<span class=\"pl-pds\">\"</span></span>\n\n<span class=\"pl-ent\">volumes</span>:\n  <span class=\"pl-ent\">lldap_data</span>:\n    <span class=\"pl-ent\">driver</span>: <span class=\"pl-s\">local</span>\n\n<span class=\"pl-ent\">services</span>:\n  <span class=\"pl-ent\">lldap</span>:\n    <span class=\"pl-ent\">image</span>: <span class=\"pl-s\">lldap/lldap:stable</span>\n    <span class=\"pl-ent\">ports</span>:\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> For LDAP, not recommended to expose, see Usage section.</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span>- \"3890:3890\"</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> For LDAPS (LDAP Over SSL), enable port if LLDAP_LDAPS_OPTIONS__ENABLED set true, look env below</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span>- \"6360:6360\"</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> For the web front-end</span>\n      - <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>17170:17170<span class=\"pl-pds\">\"</span></span>\n    <span class=\"pl-ent\">volumes</span>:\n      - <span class=\"pl-s\"><span class=\"pl-pds\">\"</span>lldap_data:/data<span class=\"pl-pds\">\"</span></span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> Alternatively, you can mount a local folder</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> - \"./lldap_data:/data\"</span>\n    <span class=\"pl-ent\">environment</span>:\n      - <span class=\"pl-s\">UID=####</span>\n      - <span class=\"pl-s\">GID=####</span>\n      - <span class=\"pl-s\">TZ=####/####</span>\n      - <span class=\"pl-s\">LLDAP_JWT_SECRET=REPLACE_WITH_RANDOM</span>\n      - <span class=\"pl-s\">LLDAP_KEY_SEED=REPLACE_WITH_RANDOM</span>\n      - <span class=\"pl-s\">LLDAP_LDAP_BASE_DN=dc=example,dc=com</span>\n      - <span class=\"pl-s\">LLDAP_LDAP_USER_PASS=adminPas$word</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> If using LDAPS, set enabled true and configure cert and key path</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> - LLDAP_LDAPS_OPTIONS__ENABLED=true</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> - LLDAP_LDAPS_OPTIONS__CERT_FILE=/path/to/certfile.crt</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> - LLDAP_LDAPS_OPTIONS__KEY_FILE=/path/to/keyfile.key</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> You can also set a different database:</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> - LLDAP_DATABASE_URL=mysql://mysql-user:password@mysql-server/my-database</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> - LLDAP_DATABASE_URL=postgres://postgres-user:password@postgres-server/my-database</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> If using SMTP, set the following variables</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> - LLDAP_SMTP_OPTIONS__ENABLE_PASSWORD_RESET=true</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> - LLDAP_SMTP_OPTIONS__SERVER=smtp.example.com</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> - LLDAP_SMTP_OPTIONS__PORT=465 # Check your smtp providor's documentation for this setting</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> - LLDAP_SMTP_OPTIONS__SMTP_ENCRYPTION=TLS # How the connection is encrypted, either \"NONE\" (no encryption, port 25), \"TLS\" (sometimes called SSL, port 465) or \"STARTTLS\" (sometimes called TLS, port 587).</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> - LLDAP_SMTP_OPTIONS__USER=no-reply@example.com # The SMTP user, usually your email address</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> - LLDAP_SMTP_OPTIONS__PASSWORD=PasswordGoesHere # The SMTP password</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> - LLDAP_SMTP_OPTIONS__FROM=no-reply &lt;no-reply@example.com&gt; # The header field, optional: how the sender appears in the email. The first is a free-form name, followed by an email between &lt;&gt;.</span>\n      <span class=\"pl-c\"><span class=\"pl-c\">#</span> - LLDAP_SMTP_OPTIONS__TO=admin &lt;admin@example.com&gt; # Same for reply-to, optional.</span></pre></div>\n<p dir=\"auto\">Then the service will listen on two ports, one for LDAP and one for the web<br>\nfront-end.</p>\n<h3 dir=\"auto\">With Podman</h3>\n<p dir=\"auto\">LLDAP works well with rootless Podman either through command line deployment<br>\nor using <a href=\"example_configs/podman-quadlets/\">quadlets</a>. The example quadlets<br>\ninclude configuration with postgresql and file based secrets, but have comments<br>\nfor several other deployment strategies.</p>\n<h3 dir=\"auto\">With Kubernetes</h3>\n<p dir=\"auto\">See <a href=\"https://github.com/Evantage-WS/lldap-kubernetes\">https://github.com/Evantage-WS/lldap-kubernetes</a> for a LLDAP deployment for Kubernetes</p>\n<p dir=\"auto\">You can bootstrap your lldap instance (users, groups)<br>\nusing <a href=\"example_configs/bootstrap/bootstrap.md#kubernetes-job\">bootstrap.sh</a>.<br>\nIt can be run by Argo CD for managing users in git-opt way, or as a one-shot job.</p>\n<h3 dir=\"auto\">From a package repository</h3>\n<p dir=\"auto\"><strong>Do not open issues in this repository for problems with third-party<br>\npre-built packages. Report issues downstream.</strong></p>\n<p dir=\"auto\">Depending on the distribution you use, it might be possible to install lldap<br>\nfrom a package repository, officially supported by the distribution or<br>\ncommunity contributed.</p>\n<p dir=\"auto\">Each package offers a <a href=\"https://wiki.archlinux.org/title/systemd#Using_units\" rel=\"nofollow\">systemd service</a> <code class=\"notranslate\">lldap.service</code> or <a href=\"example_configs/freebsd/rc.d_lldap\">rc.d_lldap</a> <code class=\"notranslate\">rc.d/lldap</code> to (auto-)start and stop lldap.<br><br>\nWhen using the distributed packages, the default login is <code class=\"notranslate\">admin/password</code>. You can change that from the web UI after starting the service.</p>\n<details>\n<summary><b>Arch Linux</b></summary>\n<br>\n  Arch Linux offers unofficial support through the <a href=\"https://wiki.archlinux.org/title/Arch_User_Repository\" rel=\"nofollow\">Arch User Repository (AUR)</a>.<br>\n  The package descriptions can be used <a href=\"https://wiki.archlinux.org/title/Arch_User_Repository#Getting_started\" rel=\"nofollow\">to create and install packages</a>.<br><br>\n  Support: <a href=\"https://github.com/lldap/lldap/discussions/1044\">Discussions</a><br>\n  Package repository: <a href=\"https://aur.archlinux.org/packages\" rel=\"nofollow\">Arch User Repository</a><br><br>\n<markdown-accessiblity-table><table role=\"table\">\n  <tbody><tr>\n    <td>Package name</td>\n    <td>Maintainer</td>\n    <td>Description</td>\n  </tr>\n  <tr>\n    <td><a href=\"https://aur.archlinux.org/packages/lldap\" rel=\"nofollow\">lldap</a></td>\n    <td><a href=\"https://github.com/Zepmann\">@Zepmann</a></td>\n    <td>Builds the latest stable version.</td>\n  </tr>\n  <tr>\n    <td><a href=\"https://aur.archlinux.org/packages/lldap-bin\" rel=\"nofollow\">lldap-bin</a></td>\n    <td><a href=\"https://github.com/Zepmann\">@Zepmann</a></td>\n    <td>Uses the latest pre-compiled binaries from the <a href=\"https://github.com/lldap/lldap/releases\">releases in this repository</a>.<br>\n        This package is recommended if you want to run LLDAP on a system with limited resources.</td>\n  </tr>\n  <tr>\n    <td><a href=\"https://aur.archlinux.org/packages/lldap-git\" rel=\"nofollow\">lldap-git</a></td>\n    <td></td>\n    <td>Builds the latest main branch code.</td>\n  </tr>\n</tbody></table></markdown-accessiblity-table>\nLLDAP configuration file: /etc/lldap.toml<br>\n</details>\n<details>\n<summary><b>Debian</b></summary>\n<br>\n  Unofficial Debian support is offered through the <a href=\"https://build.opensuse.org/\" rel=\"nofollow\">openSUSE Build Service</a>.<br><br>\n  Maintainer: <a href=\"https://github.com/Masgalor\">@Masgalor</a><br>\n  Support: <a href=\"https://codeberg.org/Masgalor/LLDAP-Packaging/issues\" rel=\"nofollow\">Codeberg</a>, <a href=\"https://github.com/lldap/lldap/discussions\">Discussions</a><br>\n  Package repository: <a href=\"https://software.opensuse.org//download.html?project=home%3AMasgalor%3ALLDAP&amp;package=lldap\" rel=\"nofollow\">SUSE openBuildService</a><br>\n<markdown-accessiblity-table><table role=\"table\">\n  <tbody><tr>\n    <td>Available packages:</td>\n    <td>lldap</td>\n    <td>Light LDAP server for authentication.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-extras</td>\n    <td>Meta-Package for LLDAP and its tools and extensions.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-migration-tool</td>\n    <td>CLI migration tool to go from OpenLDAP to LLDAP.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-set-password</td>\n    <td>CLI tool to set a user password in LLDAP.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-cli</td>\n    <td>LLDAP-CLI is an unofficial command line interface for LLDAP.</td>\n  </tr>\n</tbody></table></markdown-accessiblity-table>\nLLDAP configuration file: /etc/lldap/lldap_config.toml<br>\n</details>\n<details>\n<summary><b>CentOS</b></summary>\n<br>\n  Unofficial CentOS support is offered through the <a href=\"https://build.opensuse.org/\" rel=\"nofollow\">openSUSE Build Service</a>.<br><br>\n  Maintainer: <a href=\"https://github.com/Masgalor\">@Masgalor</a><br>\n  Support: <a href=\"https://codeberg.org/Masgalor/LLDAP-Packaging/issues\" rel=\"nofollow\">Codeberg</a>, <a href=\"https://github.com/lldap/lldap/discussions\">Discussions</a><br>\n  Package repository: <a href=\"https://software.opensuse.org//download.html?project=home%3AMasgalor%3ALLDAP&amp;package=lldap\" rel=\"nofollow\">SUSE openBuildService</a><br>\n<markdown-accessiblity-table><table role=\"table\">\n  <tbody><tr>\n    <td>Available packages:</td>\n    <td>lldap</td>\n    <td>Light LDAP server for authentication.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-extras</td>\n    <td>Meta-Package for LLDAP and its tools and extensions.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-migration-tool</td>\n    <td>CLI migration tool to go from OpenLDAP to LLDAP.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-set-password</td>\n    <td>CLI tool to set a user password in LLDAP.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-cli</td>\n    <td>LLDAP-CLI is an unofficial command line interface for LLDAP.</td>\n  </tr>\n</tbody></table></markdown-accessiblity-table>\nLLDAP configuration file: /etc/lldap/lldap_config.toml<br>\n</details>\n<details>\n<summary><b>Fedora</b></summary>\n<br>\n  Unofficial Fedora support is offered through the <a href=\"https://build.opensuse.org/\" rel=\"nofollow\">openSUSE Build Service</a>.<br><br>\n  Maintainer: <a href=\"https://github.com/Masgalor\">@Masgalor</a><br>\n  Support: <a href=\"https://codeberg.org/Masgalor/LLDAP-Packaging/issues\" rel=\"nofollow\">Codeberg</a>, <a href=\"https://github.com/lldap/lldap/discussions\">Discussions</a><br>\n  Package repository: <a href=\"https://software.opensuse.org//download.html?project=home%3AMasgalor%3ALLDAP&amp;package=lldap\" rel=\"nofollow\">SUSE openBuildService</a><br>\n<markdown-accessiblity-table><table role=\"table\">\n  <tbody><tr>\n    <td>Available packages:</td>\n    <td>lldap</td>\n    <td>Light LDAP server for authentication.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-extras</td>\n    <td>Meta-Package for LLDAP and its tools and extensions.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-migration-tool</td>\n    <td>CLI migration tool to go from OpenLDAP to LLDAP.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-set-password</td>\n    <td>CLI tool to set a user password in LLDAP.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-cli</td>\n    <td>LLDAP-CLI is an unofficial command line interface for LLDAP.</td>\n  </tr>\n</tbody></table></markdown-accessiblity-table>\nLLDAP configuration file: /etc/lldap/lldap_config.toml<br>\n</details>\n<details>\n<summary><b>OpenSUSE</b></summary>\n<br>\n  Unofficial OpenSUSE support is offered through the <a href=\"https://build.opensuse.org/\" rel=\"nofollow\">openSUSE Build Service</a>.<br><br>\n  Maintainer: <a href=\"https://github.com/Masgalor\">@Masgalor</a><br>\n  Support: <a href=\"https://codeberg.org/Masgalor/LLDAP-Packaging/issues\" rel=\"nofollow\">Codeberg</a>, <a href=\"https://github.com/lldap/lldap/discussions\">Discussions</a><br>\n  Package repository: <a href=\"https://software.opensuse.org//download.html?project=home%3AMasgalor%3ALLDAP&amp;package=lldap\" rel=\"nofollow\">SUSE openBuildService</a><br>\n<markdown-accessiblity-table><table role=\"table\">\n  <tbody><tr>\n    <td>Available packages:</td>\n    <td>lldap</td>\n    <td>Light LDAP server for authentication.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-extras</td>\n    <td>Meta-Package for LLDAP and its tools and extensions.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-migration-tool</td>\n    <td>CLI migration tool to go from OpenLDAP to LLDAP.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-set-password</td>\n    <td>CLI tool to set a user password in LLDAP.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-cli</td>\n    <td>LLDAP-CLI is an unofficial command line interface for LLDAP.</td>\n  </tr>\n</tbody></table></markdown-accessiblity-table>\nLLDAP configuration file: /etc/lldap/lldap_config.toml<br>\n</details>\n<details>\n<summary><b>Ubuntu</b></summary>\n<br>\n  Unofficial Ubuntu support is offered through the <a href=\"https://build.opensuse.org/\" rel=\"nofollow\">openSUSE Build Service</a>.<br><br>\n  Maintainer: <a href=\"https://github.com/Masgalor\">@Masgalor</a><br>\n  Support: <a href=\"https://codeberg.org/Masgalor/LLDAP-Packaging/issues\" rel=\"nofollow\">Codeberg</a>, <a href=\"https://github.com/lldap/lldap/discussions\">Discussions</a><br>\n  Package repository: <a href=\"https://software.opensuse.org//download.html?project=home%3AMasgalor%3ALLDAP&amp;package=lldap\" rel=\"nofollow\">SUSE openBuildService</a><br>\n<markdown-accessiblity-table><table role=\"table\">\n  <tbody><tr>\n    <td>Available packages:</td>\n    <td>lldap</td>\n    <td>Light LDAP server for authentication.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-extras</td>\n    <td>Meta-Package for LLDAP and its tools and extensions.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-migration-tool</td>\n    <td>CLI migration tool to go from OpenLDAP to LLDAP.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-set-password</td>\n    <td>CLI tool to set a user password in LLDAP.</td>\n  </tr>\n  <tr>\n    <td></td>\n    <td>lldap-cli</td>\n    <td>LLDAP-CLI is an unofficial command line interface for LLDAP.</td>\n  </tr>\n</tbody></table></markdown-accessiblity-table>\nLLDAP configuration file: /etc/lldap/lldap_config.toml<br>\n</details>\n<details>\n<summary><b>FreeBSD</b></summary>\n<br>\n  Official FreeBSD support is offered through the <a href=\"https://www.freshports.org/\" rel=\"nofollow\">FreeBSD Freshport Build Service</a>.<br><br>\n  Maintainer: <a href=\"https://github.com/aokblast\">@aokblast</a><br>\n  Support: <a href=\"https://bugs.freebsd.org/bugzilla/\" rel=\"nofollow\">Bugzilla</a>, <a href=\"https://github.com/lldap/lldap/discussions\">Discussions</a><br>\n  Package repository: <a href=\"https://www.freshports.org/net/lldap/\" rel=\"nofollow\">FreeBSD Freshport Build</a><br>\n  FreeBSD Setup and Migration Manual: <a href=\"https://github.com/lldap/lldap/blob/main/example_configs/freebsd/freebsd-install.md\"> Using FreeBSD </a><br>\n<markdown-accessiblity-table><table role=\"table\">\n  <tbody><tr>\n    <td>Available packages:</td>\n    <td>lldap</td>\n    <td>Light LDAP server for authentication.</td>\n  </tr>\n</tbody></table></markdown-accessiblity-table>\nLLDAP configuration file: /usr/local/lldap_server/lldap_config.toml<br>\n</details>\n<h3 dir=\"auto\">From source</h3>\n<h4 dir=\"auto\">Backend</h4>\n<p dir=\"auto\">To compile the project, you'll need:</p>\n<ul dir=\"auto\">\n<li>curl and gzip: <code class=\"notranslate\">sudo apt install curl gzip</code></li>\n<li>Rust/Cargo: <a href=\"https://rustup.rs/\" rel=\"nofollow\">rustup.rs</a></li>\n</ul>\n<p dir=\"auto\">Then you can compile the server (and the migration tool if you want):</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"cargo build --release -p lldap -p lldap_migration_tool\"><pre class=\"notranslate\">cargo build --release -p lldap -p lldap_migration_tool</pre></div>\n<p dir=\"auto\">The resulting binaries will be in <code class=\"notranslate\">./target/release/</code>. Alternatively, you can<br>\njust run <code class=\"notranslate\">cargo run -- run</code> to run the server.</p>\n<h4 dir=\"auto\">Frontend</h4>\n<p dir=\"auto\">To bring up the server, you'll need to compile the frontend. In addition to<br>\n<code class=\"notranslate\">cargo</code>, you'll need WASM-pack, which can be installed by running <code class=\"notranslate\">cargo install wasm-pack</code>.</p>\n<p dir=\"auto\">Then you can build the frontend files with</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"./app/build.sh\"><pre class=\"notranslate\">./app/build.sh</pre></div>\n<p dir=\"auto\">(you'll need to run this after every front-end change to update the WASM<br>\npackage served).</p>\n<p dir=\"auto\">The default config is in <code class=\"notranslate\">src/infra/configuration.rs</code>, but you can override it<br>\nby creating an <code class=\"notranslate\">lldap_config.toml</code>, setting environment variables or passing<br>\narguments to <code class=\"notranslate\">cargo run</code>. Have a look at the docker template:<br>\n<code class=\"notranslate\">lldap_config.docker_template.toml</code>.</p>\n<p dir=\"auto\">You can also install it as a systemd service, see<br>\n<a href=\"example_configs/lldap.service\">lldap.service</a>.</p>\n<h3 dir=\"auto\">Cross-compilation</h3>\n<p dir=\"auto\">Docker images are provided for AMD64, ARM64 and ARM/V7.</p>\n<p dir=\"auto\">If you want to cross-compile yourself, you can do so by installing<br>\n<a href=\"https://github.com/rust-embedded/cross\"><code class=\"notranslate\">cross</code></a>:</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"cargo install cross\ncross build --target=armv7-unknown-linux-musleabihf -p lldap --release\n./app/build.sh\"><pre class=\"notranslate\">cargo install cross\ncross build --target=armv7-unknown-linux-musleabihf -p lldap --release\n./app/build.sh</pre></div>\n<p dir=\"auto\">(Replace <code class=\"notranslate\">armv7-unknown-linux-musleabihf</code> with the correct Rust target for your<br>\ndevice.)</p>\n<p dir=\"auto\">You can then get the compiled server binary in<br>\n<code class=\"notranslate\">target/armv7-unknown-linux-musleabihf/release/lldap</code> and the various needed files<br>\n(<code class=\"notranslate\">index.html</code>, <code class=\"notranslate\">main.js</code>, <code class=\"notranslate\">pkg</code> folder) in the <code class=\"notranslate\">app</code> folder. Copy them to the<br>\nRaspberry Pi (or other target), with the folder structure maintained (<code class=\"notranslate\">app</code><br>\nfiles in an <code class=\"notranslate\">app</code> folder next to the binary).</p>\n<h2 dir=\"auto\">Usage</h2>\n<p dir=\"auto\">The simplest way to use LLDAP is through the web front-end. There you can<br>\ncreate users, set passwords, add them to groups and so on. Users can also<br>\nconnect to the web UI and change their information, or request a password reset<br>\nlink (if you configured the SMTP client).</p>\n<p dir=\"auto\">You can create and manage custom attributes through the Web UI, or through the<br>\ncommunity-contributed CLI frontend (<br>\n<a href=\"https://github.com/Zepmann/lldap-cli\">Zepmann/lldap-cli</a>). This is necessary<br>\nfor some service integrations.</p>\n<p dir=\"auto\">The <a href=\"scripts/bootstrap.sh\">bootstrap.sh</a> script can enforce a list of<br>\nusers/groups/attributes from a given file, reflecting it on the server.</p>\n<p dir=\"auto\">To manage the user, group and membership lifecycle in an infrastructure-as-code<br>\nscenario you can use the unofficial <a href=\"https://registry.terraform.io/providers/tasansga/lldap/latest\" rel=\"nofollow\">LLDAP terraform provider in the terraform registry</a>.</p>\n<p dir=\"auto\">LLDAP is also very scriptable, through its GraphQL API. See the<br>\n<a href=\"docs/scripting.md\">Scripting</a> docs for more info.</p>\n<h3 dir=\"auto\">Recommended architecture</h3>\n<p dir=\"auto\">If you are using containers, a sample architecture could look like this:</p>\n<ul dir=\"auto\">\n<li>A reverse proxy (e.g. nginx or Traefik)</li>\n<li>An authentication service (e.g. Authelia, Authentik or KeyCloak) connected to<br>\nLLDAP to provide authentication for non-authenticated services, or to provide<br>\nSSO with compatible ones.</li>\n<li>The LLDAP service, with the web port exposed to Traefik.\n<ul dir=\"auto\">\n<li>The LDAP port doesn't need to be exposed, since only the other containers<br>\nwill access it.</li>\n<li>You can also set up LDAPS if you want to expose the LDAP port to the<br>\ninternet (not recommended) or for an extra layer of security in the<br>\ninter-container communication (though it's very much optional).</li>\n<li>The default LLDAP container starts up as root to fix up some files'<br>\npermissions before downgrading the privilege to the given user. However,<br>\nyou can (should?) use the <code class=\"notranslate\">*-rootless</code> version of the images to be able to<br>\nstart directly as that user, once you got the permissions right. Just don't<br>\nforget to change from the <code class=\"notranslate\">UID/GID</code> env vars to the <code class=\"notranslate\">uid</code> docker-compose<br>\nfield.</li>\n</ul>\n</li>\n<li>Any other service that needs to connect to LLDAP for authentication (e.g.<br>\nNextCloud) can be added to a shared network with LLDAP. The finest<br>\ngranularity is a network for each pair of LLDAP-service, but there are often<br>\ncoarser granularities that make sense (e.g. a network for the *arr stack and<br>\nLLDAP).</li>\n</ul>\n<h2 dir=\"auto\">Client configuration</h2>\n<h3 dir=\"auto\">Compatible services</h3>\n<p dir=\"auto\">Most services that can use LDAP as an authentication provider should work out<br>\nof the box. For new services, it's possible that they require a bit of tweaking<br>\non LLDAP's side to make things work. In that case, just create an issue with<br>\nthe relevant details (logs of the service, LLDAP logs with <code class=\"notranslate\">verbose=true</code> in<br>\nthe config).</p>\n<h3 dir=\"auto\">General configuration guide</h3>\n<p dir=\"auto\">To configure the services that will talk to LLDAP, here are the values:</p>\n<ul dir=\"auto\">\n<li>The LDAP user DN is from the configuration. By default,<br>\n<code class=\"notranslate\">cn=admin,ou=people,dc=example,dc=com</code>.</li>\n<li>The LDAP password is from the configuration (same as to log in to the web<br>\nUI).</li>\n<li>The users are all located in <code class=\"notranslate\">ou=people,</code> + the base DN, so by default user<br>\n<code class=\"notranslate\">bob</code> is at <code class=\"notranslate\">cn=bob,ou=people,dc=example,dc=com</code>.</li>\n<li>Similarly, the groups are located in <code class=\"notranslate\">ou=groups</code>, so the group <code class=\"notranslate\">family</code><br>\nwill be at <code class=\"notranslate\">cn=family,ou=groups,dc=example,dc=com</code>.</li>\n</ul>\n<p dir=\"auto\">Testing group membership through <code class=\"notranslate\">memberOf</code> is supported, so you can have a<br>\nfilter like: <code class=\"notranslate\">(memberOf=cn=admins,ou=groups,dc=example,dc=com)</code>.</p>\n<p dir=\"auto\">The administrator group for LLDAP is <code class=\"notranslate\">lldap_admin</code>: anyone in this group has<br>\nadmin rights in the Web UI. Most LDAP integrations should instead use a user in<br>\nthe <code class=\"notranslate\">lldap_strict_readonly</code> or <code class=\"notranslate\">lldap_password_manager</code> group, to avoid granting full<br>\nadministration access to many services. To prevent privilege escalation users in the<br>\n<code class=\"notranslate\">lldap_password_manager</code> group are not allowed to change passwords of admins in the<br>\n<code class=\"notranslate\">lldap_admin</code> group.</p>\n<h3 dir=\"auto\">Integration with OS's</h3>\n<p dir=\"auto\">Integration with Linux accounts is possible, through PAM and nslcd. See <a href=\"example_configs/pam/README.md\">PAM<br>\nconfiguration guide</a>.</p>\n<p dir=\"auto\">Integration with Windows (e.g. Samba) is WIP.</p>\n<h3 dir=\"auto\">Sample client configurations</h3>\n<p dir=\"auto\">Some specific clients have been tested to work and come with sample<br>\nconfiguration files, or guides. See the <a href=\"example_configs\"><code class=\"notranslate\">example_configs</code></a><br>\nfolder for help with:</p>\n<ul dir=\"auto\">\n<li><a href=\"example_configs/airsonic-advanced.md\">Airsonic Advanced</a></li>\n<li><a href=\"example_configs/apacheguacamole.md\">Apache Guacamole</a></li>\n<li><a href=\"example_configs/apereo_cas_server.md\">Apereo CAS Server</a></li>\n<li><a href=\"example_configs/authelia_config.yml\">Authelia</a></li>\n<li><a href=\"example_configs/authentik.md\">Authentik</a></li>\n<li><a href=\"example_configs/bookstack.env.example\">Bookstack</a></li>\n<li><a href=\"example_configs/calibre_web.md\">Calibre-Web</a></li>\n<li><a href=\"example_configs/carpal.md\">Carpal</a></li>\n<li><a href=\"example_configs/dell_idrac.md\">Dell iDRAC</a></li>\n<li><a href=\"example_configs/dex_config.yml\">Dex</a></li>\n<li><a href=\"example_configs/dokuwiki.md\">Dokuwiki</a></li>\n<li><a href=\"example_configs/dolibarr.md\">Dolibarr</a></li>\n<li><a href=\"example_configs/duo_auth_proxy.md\">Duo Auth Proxy</a></li>\n<li><a href=\"example_configs/ejabberd.md\">Ejabberd</a></li>\n<li><a href=\"example_configs/emby.md\">Emby</a></li>\n<li><a href=\"example_configs/ergo.md\">Ergo IRCd</a></li>\n<li><a href=\"example_configs/gitea.md\">Gitea</a></li>\n<li><a href=\"example_configs/gitlab.md\">GitLab</a></li>\n<li><a href=\"example_configs/grafana_ldap_config.toml\">Grafana</a></li>\n<li><a href=\"example_configs/grocy.md\">Grocy</a></li>\n<li><a href=\"example_configs/harbor.md\">Harbor</a></li>\n<li><a href=\"example_configs/hashicorp-vault.md\">HashiCorp Vault</a></li>\n<li><a href=\"example_configs/hedgedoc.md\">Hedgedoc</a></li>\n<li><a href=\"example_configs/home-assistant.md\">Home Assistant</a></li>\n<li><a href=\"example_configs/jellyfin.md\">Jellyfin</a></li>\n<li><a href=\"example_configs/jenkins.md\">Jenkins</a></li>\n<li><a href=\"example_configs/jitsi_meet.conf\">Jitsi Meet</a></li>\n<li><a href=\"example_configs/kasm.md\">Kasm</a></li>\n<li><a href=\"example_configs/keycloak.md\">KeyCloak</a></li>\n<li><a href=\"example_configs/kimai.yaml\">Kimai</a></li>\n<li><a href=\"example_configs/librenms.md\">LibreNMS</a></li>\n<li><a href=\"example_configs/maddy.md\">Maddy</a></li>\n<li><a href=\"example_configs/mastodon.env.example\">Mastodon</a></li>\n<li><a href=\"example_configs/matrix_synapse.yml\">Matrix</a></li>\n<li><a href=\"example_configs/mealie.md\">Mealie</a></li>\n<li><a href=\"example_configs/metabase.md\">Metabase</a></li>\n<li><a href=\"example_configs/MegaRAC-SP-X-BMC.md\">MegaRAC-BMC</a></li>\n<li><a href=\"example_configs/minio.md\">MinIO</a></li>\n<li><a href=\"example_configs/netbox.md\">Netbox</a></li>\n<li><a href=\"example_configs/nextcloud.md\">Nextcloud</a></li>\n<li><a href=\"example_configs/nexus.md\">Nexus</a></li>\n<li><a href=\"example_configs/ocis.md\">OCIS (OwnCloud Infinite Scale)</a></li>\n<li><a href=\"example_configs/onedev.md\">OneDev</a></li>\n<li><a href=\"example_configs/Organizr.md\">Organizr</a></li>\n<li><a href=\"example_configs/peertube.md\">Peertube</a></li>\n<li><a href=\"example_configs/penpot.md\">Penpot</a></li>\n<li><a href=\"example_configs/pgadmin.md\">pgAdmin</a></li>\n<li><a href=\"example_configs/portainer.md\">Portainer</a></li>\n<li><a href=\"example_configs/powerdns_admin.md\">PowerDNS Admin</a></li>\n<li><a href=\"example_configs/prosody.md\">Prosody</a></li>\n<li><a href=\"example_configs/proxmox.md\">Proxmox VE</a></li>\n<li><a href=\"example_configs/quay.md\">Quay</a></li>\n<li><a href=\"example_configs/radicale.md\">Radicale</a></li>\n<li><a href=\"example_configs/rancher.md\">Rancher</a></li>\n<li><a href=\"example_configs/seafile.md\">Seafile</a></li>\n<li><a href=\"example_configs/shaarli.md\">Shaarli</a></li>\n<li><a href=\"example_configs/snipe-it.md\">Snipe-IT</a></li>\n<li><a href=\"example_configs/sonarqube.md\">SonarQube</a></li>\n<li><a href=\"example_configs/squid.md\">Squid</a></li>\n<li><a href=\"example_configs/stalwart.md\">Stalwart</a></li>\n<li><a href=\"example_configs/syncthing.md\">Syncthing</a></li>\n<li><a href=\"example_configs/thelounge.md\">TheLounge</a></li>\n<li><a href=\"example_configs/traccar.xml\">Traccar</a></li>\n<li><a href=\"example_configs/udm_identity_end_point.md\">UniFi OS</a></li>\n<li><a href=\"example_configs/vaultwarden.md\">Vaultwarden</a></li>\n<li><a href=\"example_configs/wekan.md\">WeKan</a></li>\n<li><a href=\"example_configs/wg_portal.env.example\">WG Portal</a></li>\n<li><a href=\"example_configs/wikijs.md\">WikiJS</a></li>\n<li><a href=\"example_configs/xbackbone_config.php\">XBackBone</a></li>\n<li><a href=\"example_configs/zendto.md\">Zendto</a></li>\n<li><a href=\"example_configs/zitadel.md\">Zitadel</a></li>\n<li><a href=\"example_configs/zulip.md\">Zulip</a></li>\n</ul>\n<h3 dir=\"auto\">Incompatible services</h3>\n<p dir=\"auto\">Though we try to be maximally compatible, not every feature is supported; LLDAP<br>\nis not a fully-featured LDAP server, intentionally so.</p>\n<p dir=\"auto\">LDAP browsing tools are generally not supported, though they could be. If you<br>\nneed to use one but it behaves weirdly, please file a bug.</p>\n<p dir=\"auto\">Some services use features that are not implemented, or require specific<br>\nattributes. You can try to create those attributes (see custom attributes in<br>\nthe <a href=\"#usage\">Usage</a> section).</p>\n<p dir=\"auto\">Finally, some services require password hashes so they can validate themselves<br>\nthe user's password without contacting LLDAP. This is not and will not be<br>\nsupported, it's incompatible with our password hashing scheme (a zero-knowledge<br>\nproof). Furthermore, it's generally not recommended in terms of security, since<br>\nit duplicates the places from which a password hash could leak.</p>\n<p dir=\"auto\">In that category, the most prominent is Synology. It is, to date, the only<br>\nservice that seems definitely incompatible with LLDAP.</p>\n<h2 dir=\"auto\">Migrating from SQLite</h2>\n<p dir=\"auto\">If you started with an SQLite database and would like to migrate to<br>\nMySQL/MariaDB or PostgreSQL, check out the <a href=\"/docs/database_migration.md\">DB<br>\nmigration docs</a>.</p>\n<h2 dir=\"auto\">Comparisons with other services</h2>\n<h3 dir=\"auto\">vs OpenLDAP</h3>\n<p dir=\"auto\"><a href=\"https://www.openldap.org\" rel=\"nofollow\">OpenLDAP</a> is a monster of a service that implements<br>\nall of LDAP and all of its extensions, plus some of its own. That said, if you<br>\nneed all that flexibility, it might be what you need! Note that installation<br>\ncan be a bit painful (figuring out how to use <code class=\"notranslate\">slapd</code>) and people have mixed<br>\nexperiences following tutorials online. If you don't configure it properly, you<br>\nmight end up storing passwords in clear, so a breach of your server would<br>\nreveal all the stored passwords!</p>\n<p dir=\"auto\">OpenLDAP doesn't come with a UI: if you want a web interface, you'll have to<br>\ninstall one (not that many look nice) and configure it.</p>\n<p dir=\"auto\">LLDAP is much simpler to setup, has a much smaller image (10x smaller, 20x if<br>\nyou add PhpLdapAdmin), and comes packed with its own purpose-built web UI.<br>\nHowever, it's not as flexible as OpenLDAP.</p>\n<h3 dir=\"auto\">vs FreeIPA</h3>\n<p dir=\"auto\"><a href=\"http://www.freeipa.org\" rel=\"nofollow\">FreeIPA</a> is the one-stop shop for identity management:<br>\nLDAP, Kerberos, NTP, DNS, Samba, you name it, it has it. In addition to user<br>\nmanagement, it also does security policies, single sign-on, certificate<br>\nmanagement, linux account management and so on.</p>\n<p dir=\"auto\">If you need all of that, go for it! Keep in mind that a more complex system is<br>\nmore complex to maintain, though.</p>\n<p dir=\"auto\">LLDAP is much lighter to run (&lt;10 MB RAM including the DB), easier to<br>\nconfigure (no messing around with DNS or security policies) and simpler to<br>\nuse. It also comes conveniently packed in a docker container.</p>\n<h3 dir=\"auto\">vs Kanidm</h3>\n<p dir=\"auto\"><a href=\"https://kanidm.com\" rel=\"nofollow\">Kanidm</a> is an up-and-coming Rust identity management<br>\nplatform, covering all your bases: OAuth, Linux accounts, SSH keys, Radius,<br>\nWebAuthn. It comes with a (read-only) LDAPS server.</p>\n<p dir=\"auto\">It's fairly easy to install and does much more; but their LDAP server is<br>\nread-only, and by having more moving parts it is inherently more complex. If<br>\nyou don't need to modify the users through LDAP and you're planning on<br>\ninstalling something like <a href=\"https://www.keycloak.org\" rel=\"nofollow\">KeyCloak</a> to provide<br>\nmodern identity protocols, check out Kanidm.</p>\n<h2 dir=\"auto\">I can't log in!</h2>\n<p dir=\"auto\">If you just set up the server, can get to the login page but the password you<br>\nset isn't working, try the following:</p>\n<ul dir=\"auto\">\n<li>If you have changed the admin password in the config after the first run, it<br>\nwon't be used (unless you force its use with <code class=\"notranslate\">force_ldap_user_pass_reset</code>).<br>\nThe config password is only for the initial admin creation.</li>\n<li>(For docker): Make sure that the <code class=\"notranslate\">/data</code> folder is persistent, either to a<br>\ndocker volume or mounted from the host filesystem.</li>\n<li>Check if there is a <code class=\"notranslate\">lldap_config.toml</code> file (either in <code class=\"notranslate\">/data</code> for docker<br>\nor in the current directory). If there isn't, copy<br>\n<code class=\"notranslate\">lldap_config.docker_template.toml</code> there, and fill in the various values<br>\n(passwords, secrets, ...).</li>\n<li>Check if there is a <code class=\"notranslate\">users.db</code> file (either in <code class=\"notranslate\">/data</code> for docker or where<br>\nyou specified the DB URL, which defaults to the current directory). If<br>\nthere isn't, check that the user running the command (user with ID 10001<br>\nfor docker) has the rights to write to the <code class=\"notranslate\">/data</code> folder. If in doubt, you<br>\ncan <code class=\"notranslate\">chmod 777 /data</code> (or whatever the folder) to make it world-writeable.</li>\n<li>Make sure you restart the server.</li>\n<li>If it's still not working, join the<br>\n<a href=\"https://discord.gg/h5PEdRMNyP\" rel=\"nofollow\">Discord server</a> to ask for help.</li>\n</ul>\n<h2 dir=\"auto\">Discord Integration</h2>\n<p dir=\"auto\"><a href=\"https://github.com/JaidenW/LLDAP-Discord\">Use this bot</a> to Automate discord role syncronization for paid memberships.</p>\n<ul dir=\"auto\">\n<li>Allows users with the Subscriber role to self-serve create an LLDAP account based on their Discord username, using the <code class=\"notranslate\">/register</code> command.</li>\n</ul>\n<h2 dir=\"auto\">Contributions</h2>\n<p dir=\"auto\">Contributions are welcome! Just fork and open a PR. Or just file a bug.</p>\n<p dir=\"auto\">We don't have a code of conduct, just be respectful and remember that it's just<br>\nnormal people doing this for free on their free time.</p>\n<p dir=\"auto\">Make sure that you run <code class=\"notranslate\">cargo fmt</code> from the root before creating the PR. And if<br>\nyou change the GraphQL interface, you'll need to regenerate the schema by<br>\nrunning <code class=\"notranslate\">./export_schema.sh</code>.</p>\n<p dir=\"auto\">Join our <a href=\"https://discord.gg/h5PEdRMNyP\" rel=\"nofollow\">Discord server</a> if you have any<br>\nquestions!</p>","updatedAt":"2025-05-21T16:10:22Z","upvoteCount":null,"author":{"login":"eryajf","avatarUrl":"https://avatars.githubusercontent.com/u/33259379?u=e4a4090a38ac2473aaed4ef9945233636776c6c3&v=4","url":"https://github.com/eryajf"},"category":null,"labels":{"edges":[{"node":{"name":"更多","color":"25B472"}},{"node":{"name":"OpenLDAP","color":"508193"}},{"node":{"name":"lldap","color":"435425"}}]},"comments":{"edges":[]}}},"pageContext":{"number":353,"previous":{"title":"SuperManito/LinuxMirrors: GNU/Linux 更换系统软件源脚本及 Docker 安装脚本","number":352},"next":{"title":"tstack/lnav: 终端的日志文件查看器，轻松合并、尾随、搜索、过滤和查询日志文件","number":354}}},
    "staticQueryHashes": ["151096407","2861350382"]}