omldapsync with scope (sub/base/one)

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

operator
Posts: 26
Joined: Tue Oct 11, 2005 6:18 am

omldapsync with scope (sub/base/one)

Postby operator » Tue Apr 11, 2006 1:48 am

Hello all,

does anybody know a way to configure the scope (subm base or one) in an omldapsync-agreement.

Thanks
Holger Schmieder
SCHMIEDER it-solutions GmbH
Scalix certified partner
Carl-Zeiss-Strasse 5
72124 Pliezhausen

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Apr 11, 2006 4:13 am

Hi,

that would be e.g. EX_BASE1=cn=users,dc=uk,dc=scalix,dc=com in the context of AD, you just need to figure out the ldapsearch and put in the search base in the sync.cfg.

Cheers,

Sascha.

operator
Posts: 26
Joined: Tue Oct 11, 2005 6:18 am

Postby operator » Tue Apr 11, 2006 4:55 pm

Hello Sascha,

this is not what i want. Let me explain:
base means: search only this entry
one means: seach on leve below
sub means: search all levels below

example:
OU=ORG1
OU=ORG11
cn=user11
OU=ORG12
cn=user121
cn=user122
cn=user12
...
if i do an ldapseach on OU=ORG1 and objectclass=user with scope one
it returns: cn=user11 and cn=user12

if i do the same with scope sub (this is what omldapsync is doing)
it returns: cn=user11, cn=user12, cn=user121 and cn=user122

I need the second statement because i do not want to synchronize the user below ORG12 with this agreement.

Any more ideas ???
SCHMIEDER it-solutions GmbH

Scalix certified partner

Carl-Zeiss-Strasse 5

72124 Pliezhausen

operator
Posts: 26
Joined: Tue Oct 11, 2005 6:18 am

Postby operator » Tue Apr 11, 2006 4:58 pm

egain the example-tree, the forum striped out my spaces:

example:
OU=ORG1
----OU=ORG11
----cn=user11
----OU=ORG12
---------cn=user121
---------cn=user122
----cn=user12
SCHMIEDER it-solutions GmbH

Scalix certified partner

Carl-Zeiss-Strasse 5

72124 Pliezhausen

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Apr 11, 2006 6:23 pm

Hi Holger,

omldapsync is a script, so you can modify it to include the "-s one" parameter. For example, where you see:

Code: Select all

            -h "$MY_HOST" \
            -p "$MY_PORT" \
            -D "$MY_LOGON" \
            -w "$MY_PASS" \
            -S "$MY_GUID" \
            -b "$MY_BASE" \
            -L "$LDFORMAT" \


You could add:


Code: Select all

            -h "$MY_HOST" \
            -p "$MY_PORT" \
            -D "$MY_LOGON" \
            -w "$MY_PASS" \
            -s "one" \
            -S "$MY_GUID" \
            -b "$MY_BASE" \
            -L "$LDFORMAT" \


You would have to test this on your own as it's not a Supported configuration. However, since that's just a call to omldapsearch, it should work.

Thanks,
Rachel

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Wed Apr 12, 2006 6:56 am

And I'll log an enhancement request to make the LDAP search scope configurable through the sync.cfg config file.

-- Florian.
Florian von Kurnatowski, Die Harder!


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 12 guests