зеркало из https://github.com/mozilla/pjs.git
some tests of the LDAP code, currently just for the datasource
This commit is contained in:
Родитель
f5e45622ff
Коммит
0db5225142
|
@ -0,0 +1,39 @@
|
|||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s): Dan Mosedale <dmose@mozilla.org>
|
||||
#
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = rdfldapds
|
||||
|
||||
CHROME_DIR = packages/core
|
||||
CHROME_CONTENT_DIR = communicator/content/ldapviewer
|
||||
|
||||
CHROME_CONTENT = \
|
||||
example.xul \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0"?>
|
||||
<RDF:RDF
|
||||
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:NC="http://home.netscape.com/NC-rdf#"
|
||||
xmlns:WEB="http://home.netscape.com/WEB-rdf#"
|
||||
xmlns:LDAPATTR="http://www.mozilla.org/LDAPATTR-rdf#">
|
||||
|
||||
<RDF:Description about="urn:root">
|
||||
<NC:child>
|
||||
<RDF:Description about="ldap://memberdir.netscape.com:389/ou=member_directory,o=netcenter.com??one?(sn=Rasputin)">
|
||||
|
||||
<NC:child>
|
||||
<RDF:Description about="ldap://memberdir.netscape.com:389/uid=17680694:SWDv1,ou=member_directory,o=netcenter.com??base">
|
||||
<LDAPATTR:mail>lordrasputin@geocities.com</LDAPATTR:mail>
|
||||
<LDAPATTR:cn>Lord Rasputin</LDAPATTR:cn>
|
||||
</RDF:Description>
|
||||
</NC:child>
|
||||
|
||||
<NC:child>
|
||||
<RDF:Description about="ldap://memberdir.netscape.com:389/uid=30653926:PAGEv1,ou=member_directory,o=netcenter.com??base">
|
||||
<LDAPATTR:mail>jesusrasputin@hotmail.com</LDAPATTR:mail>
|
||||
<LDAPATTR:cn>Jesus Rasputin</LDAPATTR:cn>
|
||||
</RDF:Description>
|
||||
</NC:child>
|
||||
|
||||
</RDF:Description>
|
||||
</NC:child>
|
||||
</RDF:Description>
|
||||
|
||||
</RDF:RDF>
|
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
||||
|
||||
<window title="LDAP Manager Prototype"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<tree datasources="rdf:ldap"
|
||||
flex="2" id="testTree" ref="ldap://memberdir.netscape.com:389/ou=member_directory,o=netcenter.com??one?(sn=Rasputin)">
|
||||
|
||||
<template>
|
||||
<rule>
|
||||
<conditions>
|
||||
<content uri="?uri" />
|
||||
<triple subject="?uri"
|
||||
predicate="http://home.netscape.com/NC-rdf#child"
|
||||
object="?child" />
|
||||
</conditions>
|
||||
|
||||
<bindings>
|
||||
<binding subject="?child"
|
||||
predicate="http://www.mozilla.org/LDAPATTR-rdf#mail"
|
||||
object="?mail" />
|
||||
<binding subject="?child"
|
||||
predicate="http://www.mozilla.org/LDAPATTR-rdf#cn"
|
||||
object="?cn" />
|
||||
</bindings>
|
||||
|
||||
<action>
|
||||
<treechildren flex="1">
|
||||
<treeitem uri="?child">
|
||||
<treerow>
|
||||
<treecell class="treecell-indent" value="?mail" flex="1" />
|
||||
<treecell value="?cn" flex="1" />
|
||||
</treerow>
|
||||
</treeitem>
|
||||
</treechildren>
|
||||
</action>
|
||||
|
||||
</rule>
|
||||
</template>
|
||||
|
||||
<treecols id="theColumns">
|
||||
<treecol id="mail" flex="1" />
|
||||
<treecol id="cn" flex="1" />
|
||||
</treecols>
|
||||
|
||||
<treehead>
|
||||
<treerow id="headRow">
|
||||
<treecell value="Email Address" flex="1" />
|
||||
<treecell value="Real Name" flex="1" />
|
||||
</treerow>
|
||||
</treehead>
|
||||
</tree>
|
||||
|
||||
</window>
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
#!nmake
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
DEPTH=..\..\..\..
|
||||
MODULE=rdfldapds
|
||||
SAMPLES_DIR = $(DIST)/bin/chrome/communicator/content/ldapviewer
|
||||
|
||||
CHROME_DIR = packages\core
|
||||
CHROME_CONTENT_DIR = communicator\content\ldapviewer
|
||||
|
||||
CHROME_CONTENT = \
|
||||
.\example.xul \
|
||||
$(NULL)
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
Загрузка…
Ссылка в новой задаче