Gruppenzuweisung via LDAP für Customer

Hilfe zu Znuny Problemen aller Art
Locked
boris
Znuny wizard
Posts: 554
Joined: 22 Feb 2010, 18:27
Znuny Version: 3.0.4

Gruppenzuweisung via LDAP für Customer

Post by boris »

Hi,

gibt es sowas auch für customer?

Code: Select all

$Self->{'AuthSyncModule::LDAP::UserSyncGroupsDefinition'} = {

#        # ldap group

        'CN=DU_Customer_Standort_A,OU=OTRS,DC=DOMAIN,DC=com' => {

#            # otrs group

            'Customer_Standort_A' => {

#                # permission

                rw => 1,

                ro => 1,

            },

            'faq' => {

                rw => 0,

                ro => 1,

             },

        },

    };

hab das bis jetzt nur bei Agents gefunden.
Produktiv:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL

Test:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL
linux_steve
Znuny newbie
Posts: 30
Joined: 28 Oct 2010, 17:46
Znuny Version: 3.0.11

Re: Gruppenzuweisung via LDAP für Customer

Post by linux_steve »

Sieht nicht so aus.

Ich habe bei uns die Daten manuell in die 'group_customer_user' Tabelle der MySQL-DB importiert.
Bei Zeiten werde ich einen Import-Job erstellen und den dann per Cron laufen lassen - ist zwar auch nicht das gelbe vom Ei, aber besser als garnichts.

LG
OTRS: 3.2.9
OS: Debian Linux 5.0.6
Apache2/MySQL 5.0
boris
Znuny wizard
Posts: 554
Joined: 22 Feb 2010, 18:27
Znuny Version: 3.0.4

Re: Gruppenzuweisung via LDAP für Customer

Post by boris »

hast du ein Beispiel für mich?
Importierst du dann mit dem sync-ldap2db.pl Script ?
Produktiv:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL

Test:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL
linux_steve
Znuny newbie
Posts: 30
Joined: 28 Oct 2010, 17:46
Znuny Version: 3.0.11

Re: Gruppenzuweisung via LDAP für Customer

Post by linux_steve »

Hallo im neuen Jahr!

Ich habe mir quick 'n dirty folgendes Skript gebastelt:

Code: Select all

# !/bin/sh

/usr/bin/ldapsearch -LLL -H ldap://dc1.domain.lan:3268 -b dc=domain,dc=lan -x -D "CN=SearchUser,OU=Domain User,DC=domain,DC=lan" -w passwort -S sAMAccountName "(&(&(objectcategory=person)(objectclass=user))(|(extensionattribute1=*)(extensionattribute2=*)(extensionattribute3=*)(extensionattribute4=*)(c=*)))" sAMAccountName|grep sAMAccountName|cut -d' ' -f2|awk '{printf "\"%s\";\"13\";\"rw\";\"1\";\"0000-00-00 00:00:00\";\"2\";\"0000-00-00 00:00:00\";\"2\"\n",$1}'>~/group_customer_user.csv

/usr/bin/mysqlimport --lines-terminated-by="\n" --fields-terminated-by=';' --fields-enclosed-by='"' -L -d -u otrs -pdbpasswort otrs ~/group_customer_user.csv
Mit dem sync-ldap2db.pl Script kenne ich mich nicht aus.
syncuser_csv2otrs.pl könnte hier auch was bringen. ???

LG
OTRS: 3.2.9
OS: Debian Linux 5.0.6
Apache2/MySQL 5.0
boris
Znuny wizard
Posts: 554
Joined: 22 Feb 2010, 18:27
Znuny Version: 3.0.4

Re: Gruppenzuweisung via LDAP für Customer

Post by boris »

hat sich in meinem Fall auch erledigt:
http://forums.otrs.org/viewtopic.php?f=17&t=7516
Produktiv:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL

Test:
OTRS 3.1.7
CentOS 6.3
Apache2/MySQL
Locked