Re: Bug#935080: slapcat used in gosa hook script gosa-modify-host

2020-12-09 Thread Wolfgang Schweer
Moin Mike, [ Mike Gabriel, 2020-12-07 ] > Instead of always fixing gosa-modify-host again after debian-edu-config > Update from buster/updates, I have now prepare a patch for the next deb10u7 > upload. Very good, thanks. Wolfgang signature.asc Description: PGP signature

Bug#935080: slapcat used in gosa hook script gosa-modify-host

2020-05-01 Thread Wolfgang Schweer
On Fri, May 01, 2020 at 06:26:52AM +, Mike Gabriel wrote: > Here is a slight change... > > > ``` > #!/bin/bash > > set -e > > declare -a hosts > num_hosts=0 > while read KEY VALUE ; do > case "$KEY" in > dn:) let "num_hosts+=1" ;; > cn:)

Bug#935080: slapcat used in gosa hook script gosa-modify-host

2020-05-01 Thread Wolfgang Schweer
Moin Mike, On Fri, May 01, 2020 at 06:18:42AM +, Mike Gabriel wrote: > I looked at your script snippet and modified it and tested it on a live > system with many hosts and LDAP being out-of-sync with the keytab files: [..] > Changes: > > * avoid the need of a TEMP file > * match LDAP

Bug#935080: slapcat used in gosa hook script gosa-modify-host

2020-05-01 Thread Mike Gabriel
Hi again, On Mo 27 Apr 2020 12:31:41 CEST, Wolfgang Schweer wrote: Maybe you can test a follow-up one, based on your proposal to query LDAP only once. (Host gateway considered too, just in case someone has added a keytab.) Here is a slight change... ``` #!/bin/bash set -e declare -a

Bug#935080: slapcat used in gosa hook script gosa-modify-host

2020-05-01 Thread Mike Gabriel
HI Wolfgang, On Mo 27 Apr 2020 12:31:41 CEST, Wolfgang Schweer wrote: Moin Mike, On Sun, Apr 19, 2020 at 11:43:24AM +, Mike Gabriel wrote: On my customer site, we have 300 host entries or so. Doing the above loop for every host change in LDAP will let the script walk over 300 LDAP

Bug#935080: slapcat used in gosa hook script gosa-modify-host

2020-04-27 Thread Wolfgang Schweer
Moin Mike, On Sun, Apr 19, 2020 at 11:43:24AM +, Mike Gabriel wrote: > On my customer site, we have 300 host entries or so. Doing the above > loop for every host change in LDAP will let the script walk over 300 > LDAP queries. The response time of GOsa becomes awful with that. [..] > During

Bug#935080: slapcat used in gosa hook script gosa-modify-host

2020-04-19 Thread Mike Gabriel
Hi Wolfgang, thanks for working on this. On So 19 Apr 2020 11:40:51 CEST, Wolfgang Schweer wrote: On Mon, Aug 19, 2019 at 01:33:31PM +, Mike Gabriel wrote: On Mo 19 Aug 2019 12:56:11 CEST, Petter Reinholdtsen wrote: > Note, I have no idea why slapcat is used in the script to locate

Bug#935080: slapcat used in gosa hook script gosa-modify-host

2020-04-19 Thread Wolfgang Schweer
On Mon, Aug 19, 2019 at 01:33:31PM +, Mike Gabriel wrote: > On Mo 19 Aug 2019 12:56:11 CEST, Petter Reinholdtsen wrote: > > Note, I have no idea why slapcat is used in the script to locate hosts: > > > > # cleanup from leftover host principals and keytab file: > > for i in $(basename -a

Bug#935080: slapcat used in gosa hook script gosa-modify-host

2019-08-19 Thread Mike Gabriel
Hi Petter, On Mo 19 Aug 2019 12:56:11 CEST, Petter Reinholdtsen wrote: [Mike Gabriel] The slapcat tool is an offline administration tool for LDAP and should not be used for day-to-day online tasks. Care to explain this argument a bit more? I fail to see why slapcat should have a different

Bug#935080: slapcat used in gosa hook script gosa-modify-host

2019-08-19 Thread Petter Reinholdtsen
[Mike Gabriel] > The slapcat tool is an offline administration tool for LDAP and should > not be used for day-to-day online tasks. Care to explain this argument a bit more? I fail to see why slapcat should have a different status from any other tools available, for use in day-to-day tasks as the

Bug#935080: slapcat used in gosa hook script gosa-modify-host

2019-08-19 Thread Mike Gabriel
Package: debian-edu-config Severity: important Version: 2.10.67 Hi all, the gosa-modify-host script utilizes slapcat to check LDAP for removed hosts: ``` www-data@tjener:~$ /usr/bin/sudo /usr/share/debian-edu-config/tools/gosa-modify-host && echo TRUE + slapcat + grep dell007.intern. + grep