我們正在考慮將LDAP與Active Directory一起用於許多Web應用程序的用戶管理,而不是定製的關係數據庫解決方案。這樣做的時候是否有很高的學習曲線,或者是否像1,2,3一樣容易?LDAP和Active Directory學習曲線
1
A
回答
5
LDAP有點有趣,比傳統數據存儲有點「不同」 - 所以肯定會涉及一條學習曲線。
最具挑戰性的部分是在LDAP路徑上獲得「控制權」,以及如何構建和使用它們。另外:連接到LDAP的權限總是有點問題。如果你想開始在你的LDAP存儲中搜索對象,那麼LDAP過濾器的相當棘手的語法也可能是一個包圍你的大腦的挑戰:-)
如果你打算談談並使用在Windows上的Active Directory,那麼你一定要看看有很多有用信息的SelfADSI網站。你沒有提到你打算使用什麼語言/編程環境 - 如果你使用的是.NET 3.5或更新的版本(C#,VB.NET),你應該檢查System.DirectoryServices.AccountManagement
(S.DS.AM)命名空間。在這裏閱讀全部內容:
- Managing Directory Security Principals in the .NET Framework 3.5
- MSDN docs on System.DirectoryServices.AccountManagement
基本上,你可以定義域範圍內,並可以輕鬆地查找用戶和/或組AD:
// set up domain context
PrincipalContext ctx = new PrincipalContext(ContextType.Domain);
// find a user
UserPrincipal user = UserPrincipal.FindByIdentity(ctx, "SomeUserName");
if(user != null)
{
// do something here....
}
// find the group in question
GroupPrincipal group = GroupPrincipal.FindByIdentity(ctx, "YourGroupNameHere");
// if found....
if (group != null)
{
// iterate over members
foreach (Principal p in group.GetMembers())
{
Console.WriteLine("{0}: {1}", p.StructuralObjectClass, p.DisplayName);
// do whatever you need to do to those members
}
}
的新的S.DS.AM
命名空間使得用AD和C#/ VB.NET中的用戶和組玩耍變得非常容易!
0
參見:"LDAP: Programming Practices"的信息,編寫代碼的LDAP服務器的交互將是穩健的,絕緣和來自任何供應商特定的LDAP知識脫敏。編寫具有特定實現知識的代碼將導致代碼變得脆弱難以維護,當服務器實現的某個方面發生變化時(例如服務器本身或服務器的配置或負載平衡器或任何其他類型),可能會遇到意外的結果與基礎設施有關。
避免編寫Microsoft特定代碼或儘可能創建Microsoft特定配置。堅持LDAP標準文件的信件。
相關問題
- 1. LDAP目錄和Active Directory
- 2. (fluxus)學習曲線
- 3. Websphere 6.1 Ldap Active Directory
- 4. Magento開發學習曲線
- 5. 關於學習曲線
- 6. REST API學習曲線
- 7. OpenGL/Java學習曲線
- 8. Eclipse IDE學習曲線
- 9. Gravity Forms gform_after_submission&LDAP/Active Directory
- 10. Active Directory的LDAP路徑
- 11. 在Active Directory中的C#LDAP
- 12. Active Directory的使用,LDAP
- 13. Kallithea和LDAP/Active Directory的問題
- 14. Python的LDAP和Active Directory問題
- 15. 學習扭曲
- 16. 什麼是機器學習中的學習曲線?
- 17. 如何在Azure機器學習上應用學習曲線
- 18. ActionScript2 - > ActionScript3學習曲線如何?
- 19. Lustre/Scade的學習曲線是什麼
- 20. 從Net :: LDAP連接到Active Directory Perl
- 21. 使用ldap更新Active Directory密碼python
- 22. 用於Office 365 Active Directory的LDAP DirectorySearcher
- 23. Active Directory自定義搜索LDAP查詢
- 24. 使用LDAP/Java啓用Active Directory用戶
- 25. c#針對通過LDAP的Active Directory
- 26. 通過LDAP連接到Active Directory
- 27. 與UnboundID LDAP SDK Active Directory中的Java
- 28. Active Directory成員的LDAP語法
- 29. Flex - LDAP/Active Directory登錄系統 - AMFPHP
- 30. Active Directory LDAP - 鎖定用戶帳戶
感謝您的鏈接。不會使用LDAP符合跨平臺解決方案,下劃線數據源是Active Directory? – 2012-01-06 04:52:52