Articles of ldap

无法从Linux连接到AD

我正在尝试整合Linux的盒子与Windows AD和kinit是失败的错误:“kinit:KDC答复不符合期望,而获得初始凭据”我没有得到任何解决scheme。 任何帮助将非常感激。 以下是我的krb5.conf文件 – [root@client1 ~]# cat /etc/krb5.conf # Configuration snippets may be placed in this directory as well includedir /etc/krb5.conf.d/ [logging] default = FILE:/var/log/krb5libs.log kdc = FILE:/var/log/krb5kdc.log admin_server = FILE:/var/log/kadmind.log [libdefaults] dns_lookup_realm = false ticket_lifetime = 24h renew_lifetime = 7d forwardable = true dns_lookup_kdc = true rdns = false default_realm = EXAMPLE.COM default_ccache_name […]

configurationOpenLDAP主从复制时出错

当复制openldap主从,我卡在中间,试图解决,但不工作。 使用Ubuntu14.04操作系统,我正在关注这个链接: https://askubuntu.com/questions/360190/how-to-configure-master-slave-ldap-replication 在第二步“enable_sync_prov.ldif”我得到这个错误: modifying entry "olcDatabase={0}hdb,cn=config" ldap_modify: No such object (32) matched DN: cn=config 我试着改变olcDatabase = {1} mdb和bdb,仍然得到相同的错误。 enable_sync_prov.ldif 文件 : dn: olcDatabase={1}hdb,cn=config changetype: modify delete: olcAccess olcAccess: {0}to attrs=userPassword,shadowLastChange by self write by anonymous auth by dn="cn=vmailadmin,dc=example,dc=com write by * none – add: olcAccess olcAccess: {0}to attrs=userPassword,shadowLastChange by self write by dn="cn=vmailadmin,dc=example,dc=com" write […]

如何configurationOracle客户端通过LDAP / OID自动查找连接string?

我希望使用LDAP连接到Oracle数据库以进行连接string查找。 已经设置LDAP / OID,并手动使用从LDAP检索的连接string工作。 但是,从oracle客户端( sqlplus )自动LDAP查找连接string不会! 根据谷歌,文件sqlnet.ora和ldap.ora需要设置通知oracle客户端,我们希望使用LDAP查找。 这是完成的,并且值是正确的,据我所知: export ORACLE_HOME=/etc/oracle $ ORACLE_HOME /networking/pipe理/ SQLNET.ORA NAMES.DIRECTORY_PATH = (LDAP) $ ORACLE_HOME / LDAP /pipe理/ ldap.ora DIRECTORY_SERVERS = (<host>:<port>) DEFAULT_ADMIN_CONTEXT = "cn=OracleContext,dc=example,dc=com" DIRECTORY_SERVER_TYPE = OID 但是,当我尝试连接时,我仍然遇到 $ sqlplus64 'user/password@identifier' ERROR ORA-12154: TNS:could not resolve the connect identifier specified 此外,通过对sqlplus客户端进行分类,可以看到两个文件( sqlnet.ora , ldap.ora )至less都被打开了: open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 […]

Zentyal 5:无法处理SASL凭证

我想请求你的帮助,并指出我怎样才能修复我的错误,无需重新安装整个系统。 所以… 有Zentyal 4,升级到Zentyal 5后,我得到了一些错误。 其中之一是: 2017/07/12 17:30:12 INFO> Service.pm:958 EBox::Module::Service::restartService – Restarting service for module: samba 2017/07/12 17:30:27 ERROR> LDAP.pm:196 EBox::Module::LDAP::_connectToSchemaMaster – Error binding to schema master LDAP: The wrong password was supplied or the SASL credentials could not be processed at Error binding to schema master LDAP: The wrong password was supplied or […]

Sympa 6.1.25,LDAP(AD)和Internet Explorer 11问题

我在Ubuntu 16.04上安装了Sympa 6.1.25,通过LDAP连接到AD,以便对应用程序进行简单的用户身份validation。 我没有对LDAPfunction做任何事情,因为我没有连接到它的AD服务器,而且我们没有足够的列表来使它进一步自动化。 使用Internet Explorer 11和日志logging与我的LDAPlogin,Sympa将随时login我点击链接或选项卡。 使用IE 11并使用本地超级pipe理员帐户login(对Sympa postgresql DB进行身份validation),没有任何问题。 使用我的LDAP或本地超级pipe理员login使用我的Chrome浏览器login没有问题。 一切工作,因为它应该。 有没有人跑过这个呢? 我把我的应用程序日志logging到4,并没有看到任何引用到那里的问题。 也许我需要(手动)再次启动我的LDAP日志,并在那里检查。 这可能是一个IE cookie的问题,或在我的浏览器设置? 我不是LDAP专家,也不是AD专家,但这似乎是浏览器特定的。 谢谢!

退出使用nc或ncat进行ldaptesting的代码

我正在尝试编写shell脚本来testing服务器是否能够达到指定的IP和端口。 我正在使用的命令: ncat -w 5 <IP> 636 or 389 > /dev/null 2>&1 < /dev/null | echo $? ncat -w 5 <IP> 636 or 389 > /dev/null 2>&1 < /dev/null | echo $? 问题是当我检查上述两个端口的退出码我收到1。 当我运行它没有/ dev / null我得到一个连接到IP。 ncat -v -w 5 <IP> 636 Ncat: Version 6.40 ( http://nmap.org/ncat ) Ncat: Connected to <IP>:636. ^C 问题是如果我使用第二个命令没有/ […]

ldap_add:操作错误(1)其他信息:00002020:操作错误../source4/dsdb/samdb/ldb_modules/password_hash.c:2816

ldapadd在LDIF文件中的大多数条目上抛出“操作错误(1)”。 我已经select了一个具体的例子,并尝试像userPassword和userAccountControl属性无济于事。 脚本需要在Samba和Active Directory之间互操作,这就是为什么我不使用“samba-tool user create” 这是LDIF dn: CN=Irene.Toth,OU=acme_ou,DC=acme,DC=dev changetype: add objectClass: top objectClass: person objectClass: organizationalPerson objectClass: user cn: Irene.Toth sn: Toth c: DE l: Bremerhaven st: Bremen postalCode: 27574 title: Representative telephoneNumber: +49-471-372727 givenName: Irene distinguishedName: CN=Irene.Toth,OU=acme_ou,DC=acme,DC=dev instanceType: 4 whenChanged: 20170426202003.0Z whenCreated: 20170426202003.0Z displayName: Irene Toth uSNChanged: 114938 uSNCreated: 114936 department: Sales company: […]

是否应该使用LDAP在FreeIPA / IDM上进行身份validation?

我最近遇到了这个问题,即使用户密码已过期,您仍然可以在FreeIPA中对LDAP服务器进行身份validation。 细节可以在这里看到 FreeIPA(LDAP):拒绝具有过期密码的用户的身份validation 此外,红帽IDM文档似乎提到LDAP主要是作为数据存储而不是authentication服务器。 ( https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Identity_Management_Guide/ipa-linux-services.html ) 不能让用户密码过期就像是一个非常大的安全漏洞,我主要用作LDAPauthentication服务器,并让我觉得,如果这就是你想要的,FreeIPA / IDM是不是要走的路。 是这样吗? FreeIPA中的LDAP是否被devise为用于身份validation,或者Kerberos是唯一的(或者至less主要)身份validation?

无法连接到我的AD LDAP服务器

我刚刚在运行Windows Server 2016的虚拟机上安装了AD。 我想使用JXplorer或Apache Directory Server等浏览器连接到LDAP服务器,因为我将开发一个将使用该LDAP作为authentication服务器的Java应用程序。 所以,我创build了一个标准的广告, 与一些用户 但是,当我去JXplorer,我总是得到同样的错误: Error opening connection: [LDAP: error code 49 – 80090308: LdapErr: DSID-0C0903D3, comment: AcceptSecurityContext error, data 52e, v3839 我对LDAP和AD有点新,所以不知道什么是错的。 我通过ADpipe理中心看到,用户“juan”位于CN = Users,DC = i3test,DC = es但不能连接到该stringJXplorer连接屏幕

将ldap推送到外部服务器

我正在我们的本地networking上运行ldap服务器(freeipa)(防火墙,nat'ted)。 我想将内容推送到外部ldap服务器,以允许我的用户在外部服务上使用他们的login。 我不想打开我的内部ldap服务器到互联网。 有没有办法将freeipa(更改或定期)同步到外部服务器(freeipa或slapd)?