Hallo
folgendes
ich möchte erstmal alle User drin haben
AlwaysFilter => '(&(objectCategory=person)(objectClass=user)(memberOf=CN=Benutzer,CN=Builtin,DC=xxxxx,DC=local))',
geht soweit
jetzt möchte ich ein paar Einzelne ausfilter
kann ich irgendwie sagen
"Und ist nicht Mitglied von Gruppe B"?
geht das?
AlwaysFilter ist Mitglied einer Gruppe und nicht Mitglied
-
- Znuny ninja
- Posts: 1029
- Joined: 13 Apr 2009, 12:26
- Znuny Version: 6.0.13
- Real Name: Wolfgang Fürtbauer
- Company: PBS Logitek GmbH
- Location: Pinsdorf
Re: AlwaysFilter ist Mitglied einer Gruppe und nicht Mitglie
surely - du musst Dich nur ein wenig in die LDAP Abfrage Syntax einlesen
eine weitere Klammer um das ganz und die weitere Bedingung mit ! (nicht) verknüpfen
eine weitere Klammer um das ganz und die weitere Bedingung mit ! (nicht) verknüpfen
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
-
- Znuny newbie
- Posts: 4
- Joined: 16 Jan 2012, 18:42
- Znuny Version: 3.0.11
- Real Name: Thomas Müller
Re: AlwaysFilter ist Mitglied einer Gruppe und nicht Mitglie
Hallo Wolfgangf
kannst du mir vielleicht es mal eintragen in mein Beispiel oben damit ich es besser verstehe?
danke
kannst du mir vielleicht es mal eintragen in mein Beispiel oben damit ich es besser verstehe?
danke
-
- Znuny ninja
- Posts: 1029
- Joined: 13 Apr 2009, 12:26
- Znuny Version: 6.0.13
- Real Name: Wolfgang Fürtbauer
- Company: PBS Logitek GmbH
- Location: Pinsdorf
Re: AlwaysFilter ist Mitglied einer Gruppe und nicht Mitglie
Code: Select all
AlwaysFilter => '(&(objectCategory=person)(objectClass=user)(memberOf=CN=Benutzer,CN=Builtin,DC=xxxxx,DC=local)(!<hier die nicht-Bedingung))';
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
-
- Znuny newbie
- Posts: 24
- Joined: 20 Feb 2012, 15:55
- Znuny Version: v3011
Re: AlwaysFilter ist Mitglied einer Gruppe und nicht Mitglie
hab das selbe problem...nur wurde ich hier nicht schlau
mein sync-abschnitt in der config.pm sieht so aus:
Ich will quasi eine abteilung (die einer gruppe entspricht) vom sync ausschließen. Wie und wo muss ich das anstellen?
mein sync-abschnitt in der config.pm sieht so aus:
Code: Select all
# Now sync data with OTRS DB
$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} = 'ldaps://ldap.taschenkaufhaus.de/';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'dc=taschenkaufhaus,dc=de';
$Self->{'AuthSyncModule::LDAP::UID'} = 'uid';
$Self->{'AuthSyncModule::LDAP::AlwaysFilter'} = '(&(objectClass=posixGroup)(ou=group)(!(cn=abteilung)))';
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = '';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = '';
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
# DB -> LDAP
UserTitle => 'title',
UserFirstname => 'givenName',
UserLastname => 'sn',
UserLogin => 'uid',
UserEmail => 'mail',
UserPassword => 'userPassword',
UserCustomerID => 'memberUid',
UserComment => 'description',
};