// 设定time out时间
struct timeval network_timeout;
network_timeout.tv_usec = 0;
network_timeout.tv_sec = 10;
// 设定time out时间
result = ldap_set_option(*ld, LDAP_OPT_NETWORK_TIMEOUT, &network_timeout);
阅读全文>
发表于 @ 2006年11月24日 13:21:00|评论(loading...)|收藏
示例代码:
// データベースにエントリーを検索する
result = ldap_search_ext_s(ld, base.c_str(), LDAP_SCOPE_SUBTREE, str_filter.c_str(), attrs, 0,
NULL, NULL, TIME_OUT, sizeLimite, &msg);
// 変数をクリアする
delete[] attrs;
if (result != LDAP_SUCCESS)
{
// 検索が失敗した場合、CISNSException異常をスローする
DEBUG_1(g_debug_flag, ldap_search_ext_s():failed[%s], ldap_err2string(result));
// 検索対象が存在しない場合、エラーとしない
阅读全文>
发表于 @ 2006年11月14日 10:32:00|评论(loading...)|收藏
一、备份数据库
二、恢复数据库
1、清空数据库
2、导入备份文件
三、存在问题
1、清空数据库的时候跟目录无法删除。阅读全文>
发表于 @ 2006年09月22日 15:35:00|评论(loading...)|收藏
一、系统环境:
二、Red Hat Enterprise Linux4.0下OpenLDAP 2.3.24的安装
三、配置
四、常用命令
四、Boolean数据类型
阅读全文>
发表于 @ 2006年09月19日 13:26:00|评论(loading...)|收藏
一、努力拼装(Striving to Fit In)
二、共享程序的目录需求(Communicating Your application's Directory Needs)
三、设计良好的性能和扩展性(Designing for Good Performance and Scalability)
四、开发一个模型并做测试(Developing a Prototype and Conducting a Pilot)
五、利用已有代码(Leveraging Existing Code)
六、避免共同错误(Avoiding Common Mistakes)
1、容许滥用查询。
2、不使用LDAP客户端大小和时间限制。
3、将一个属性中的多个值视为一个排序的列表。
4、在目录服务中保存极大的Entries。
5、不合理的处理0长密码。
6、不合理的支持LDAP referrals(提名)。
7、在Entry被修改后立即读取和期待看待最近的修改。阅读全文>
发表于 @ 2006年09月19日 11:36:00|评论(loading...)|收藏
一、定位和共享信息
二、实现验证
三、帮助其他发布其他服务
四、实现访问控制
五、实现地域无关阅读全文>
发表于 @ 2006年09月18日 17:42:00|评论(loading...)|收藏
一、选择前缀(Chossing a Suffix)
二、扁平和层次化的Schemes(Flat and Hierarchical Schemes)
三、命名属性(Naming Attributes)
四、应用程序的考虑(Application Consideratoins)
五、命名属性和RDNs的管理考虑(Administrative Considerations of Naming Attributes and RDNs)
六、保密考虑(Privacy Considerations)
七、保留扩展余地(Anticipating the Future)阅读全文>
发表于 @ 2006年09月18日 17:28:00|评论(loading...)|收藏
一、LDAP信息模型
二、LDAP命名模型
三、LDAP功能模型
四、LDAP安全模型阅读全文>
发表于 @ 2006年08月08日 15:09:00|评论(loading...)|收藏