Database 具有Ldap连接错误的地理网络数据库

Database 具有Ldap连接错误的地理网络数据库,database,ldap,openldap,geonetwork,georchestra,Database,Ldap,Openldap,Geonetwork,Georchestra,我正在尝试将ldap连接到geonetwork数据库,但每次登录时,它都不会显示管理员按钮。然后我检查数据库,它是空的。我在本地主机环境中使用Georgechestra 13.09,geoserver和mapfishapp运行良好,并且登录时没有问题 我的config security.properties是 Core security properties logout.success.url=/index.html passwordSalt=secret-hash-salt= # LDAP

我正在尝试将ldap连接到geonetwork数据库,但每次登录时,它都不会显示管理员按钮。然后我检查数据库,它是空的。我在本地主机环境中使用Georgechestra 13.09,geoserver和mapfishapp运行良好,并且登录时没有问题

我的
config security.properties

Core security properties
logout.success.url=/index.html
passwordSalt=secret-hash-salt=

# LDAP Connection Settings
ldap.base.provider.url=ldap://localhost:389
ldap.base.dn=dc=geobolivia,dc=gob,dc=bo
ldap.security.principal=cn=admin,dc=geobolivia,dc=gob,dc=bo
ldap.security.credentials=geobolivia

ldap.base.search.base=ou=users
ldap.base.dn.pattern=uid={0},${ldap.base.search.base}
#ldap.base.dn.pattern=mail={0},${ldap.base.search.base}

# Define if groups and profile information are imported from LDAP. If not, local database is used.
# When a new user connect first, the default profile is assigned. A user administrator can update
# privilege information.
ldap.privilege.import=true
ldap.privilege.export=true

ldap.privilege.create.nonexisting.groups=false

# Define the way to extract profiles and privileges from the LDAP
# 1. Define one attribute for the profile and one for groups in config-security-overrides.properties

# 2. Define one attribute for the privilege and define a custom pattern (use LDAPUserDetailsContextMapperWithPa$
ldap.privilege.pattern=
#ldap.privilege.pattern=CAT_(.*)_(.*)
ldap.privilege.pattern.idx.group=1
ldap.privilege.pattern.idx.profil=2

# 3. Define custom location for extracting group and role (no support for group/role combination) (use LDAPUser$
#ldap.privilege.search.group.attribute=cn
#ldap.privilege.search.group.object=ou=groups
#ldap.privilege.search.group.query=(&(objectClass=posixGroup)(memberUid={0})(cn=EL_*))
#ldap.privilege.search.group.pattern=EL_(.*)
#ldap.privilege.search.privilege.attribute=cn
#ldap.privilege.search.privilege.object=ou=groups
#ldap.privilege.search.privilege.query=(&(objectClass=posixGroup)(memberUid={0})(cn=SV_*))
#ldap.privilege.search.privilege.pattern=SV_(.*)

ldap.privilege.search.group.attribute=cn
ldap.privilege.search.group.object=ou=groups
ldap.privilege.search.group.query=(&(objectClass=posixGroup)(memberUid={1})(cn=EL_*))
ldap.privilege.search.group.pattern=EL_(.*)
ldap.privilege.search.privilege.attribute=cn
ldap.privilege.search.privilege.object=ou=groups
ldap.privilege.search.privilege.query=(&(objectClass=posixGroup)(memberUid={1})(cn=SV_ADMIN))
ldap.privilege.search.privilege.pattern=SV_(.*)

# Run LDAP sync every day at 23:30

# Run LDAP sync every day at 23:30
#ldap.sync.cron=0 30 23 * * ?
ldap.sync.cron=0 * * * * ?
#ldap.sync.cron=0 0/1 * 1/1 * ? *
ldap.sync.startDelay=60000
ldap.sync.user.search.base=${ldap.base.search.base}
ldap.sync.user.search.filter=(&(objectClass=*)(mail=*@*)(givenName=*))
ldap.sync.user.search.attribute=uid
ldap.sync.group.search.base=ou=groups
ldap.sync.group.search.filter=(&(objectClass=posixGroup)(cn=EL_*))
ldap.sync.group.search.attribute=cn
ldap.sync.group.search.pattern=EL_(.*)

# CAS properties
cas.baseURL=https://localhost:8443/cas
cas.ticket.validator.url=${cas.baseURL}
cas.login.url=${cas.baseURL}/login
cas.logout.url=${cas.baseURL}/logout?url=${geonetwork.https.url}/

<import resource="config-security-cas.xml"/>
<import resource="config-security-cas-ldap.xml"/>

# either the hardcoded url to the server
# or if has the form  it will be replaced with
# the server details from the server configuration
geonetwork.https.url=https://localhost/geonetwork-private/
#geonetwork.https.url=https://geobolivia.gob.bo:443
#geonetwork.https.url=https://localhost:443
而geonetwork.log中显示的

2014-03-11 13:44:06,426 INFO  [jeeves.service] - Dispatching : xml.search.keywords
2014-03-11 13:44:06,427 ERROR [jeeves.service] - Exception when executing service
2014-03-11 13:44:06,427 ERROR [jeeves.service] -  (C) Exc : java.lang.IllegalArgumentException: The thesaurus external.theme.inspire-service-taxonomy does not exist, there for the query cannot be excuted: 'Query [query=SELECT DISTINCT id,uppc,lowc,broader,spa_prefLabel,spa_note FROM {id} rdf:type {skos:Concept},[{id} gml:BoundedBy {} gml:upperCorner {uppc}],[{id} gml:BoundedBy {} gml:lowerCorner {lowc}],[{id} skos:broader {broader}],[{id} skos:prefLabel {spa_prefLabel} WHERE lang(spa_prefLabel) LIKE "es" IGNORE CASE],[{id} skos:scopeNote {spa_note} WHERE lang(spa_note) LIKE "es" IGNORE CASE] WHERE (spa_prefLabel LIKE "***" IGNORE CASE OR id LIKE "*") LIMIT 35 USING NAMESPACE skos=<http://www.w3.org/2004/02/skos/core#>,gml=<http://www.opengis.net/gml#>, interpreter=KeywordResultInterpreter]'
2014-03-11 13:44:06426信息[jeeves.service]-调度:xml.search.keywords
2014-03-11 13:44:06427错误[jeeves.service]-执行服务时出现异常
2014-03-11 13:44:06427错误[jeeves.service]-(C)Exc:java.lang.IllegalArgumentException:thesaurus external.theme.inspire-service-taxonomy不存在,无法执行查询:'query[query=SELECT DISTINCT id,uppc,lowc,brother,spa_preflable,spa_note FROM{id}rdf:type{skos:Concept},[{id}gml:BoundedBy}gml:lowerCorner{lowc}],{id}skos:broader{lowc}],{id}skos:broader{broader}],{id}skos:prefLabel{spa_prefLabel}WHERE lang(spa_prefLabel)像“es”忽略大小写,{id}skos:scopeNote{spa_note}像“es”忽略大小写,{spa_note}像“es”忽略大小写在哪里(spa_prefLabel像“*”或类似“*”)使用名称空间skos=、gml=、解释器=关键字ResultInterpreter]“限制35”

乔治切斯特拉目前使用的GeoNetwork版本在第一页上没有显示“管理”按钮。您必须启动搜索,然后在右上角的“其他操作”菜单中,您应该能够进入管理界面。我们知道这不是很直观,但在未来几个月内应该会有所改变(我们最近计划在年底前升级GeoNetwork)。

你解决了吗?我认为在您的config-security.properties中,在这个位置
ldap.base.dn.pattern=uid={0},${ldap.base.search.base}
您需要将{0}替换为在geonetwork的登录屏幕中键入的用户名

2014-03-11 13:44:06,426 INFO  [jeeves.service] - Dispatching : xml.search.keywords
2014-03-11 13:44:06,427 ERROR [jeeves.service] - Exception when executing service
2014-03-11 13:44:06,427 ERROR [jeeves.service] -  (C) Exc : java.lang.IllegalArgumentException: The thesaurus external.theme.inspire-service-taxonomy does not exist, there for the query cannot be excuted: 'Query [query=SELECT DISTINCT id,uppc,lowc,broader,spa_prefLabel,spa_note FROM {id} rdf:type {skos:Concept},[{id} gml:BoundedBy {} gml:upperCorner {uppc}],[{id} gml:BoundedBy {} gml:lowerCorner {lowc}],[{id} skos:broader {broader}],[{id} skos:prefLabel {spa_prefLabel} WHERE lang(spa_prefLabel) LIKE "es" IGNORE CASE],[{id} skos:scopeNote {spa_note} WHERE lang(spa_note) LIKE "es" IGNORE CASE] WHERE (spa_prefLabel LIKE "***" IGNORE CASE OR id LIKE "*") LIMIT 35 USING NAMESPACE skos=<http://www.w3.org/2004/02/skos/core#>,gml=<http://www.opengis.net/gml#>, interpreter=KeywordResultInterpreter]'