[Samba] [samba] 4.2.1 Indexing attributes
infractory at gmail.com
Thu May 7 09:27:24 MDT 2015
Back after 5 hours indexing. Now searching users from their UNIX login is
instantaneous. So the ldbsearch after modifying searchFlags attribute is
really one way to generate the index.
Unfortunately the schema modification did not spread across the second DC
and the index is not present on the second DC (search on it take time,
which means CPU).
To spread the searchFlags modification it is not really an issue to have to
apply the LDIF via ldbmodify on each servers, this action is performed
really quickly by Samba4.
To spread the index it would be nice if it could be performed by Samba4 or
manually, pushing index's files to others servers, rather than running a
ldbsearch which will eat one core for hours (5 hours on a recent i7 with
always available memory).
So the question is now: where are stored index files? Is it possible to
copy them manually from server to server?
2015-05-07 12:31 GMT+02:00 mathias dufresne <infractory at gmail.com>:
> Thank you a lot Luca!
> I was able to change searchFlags using ldbedit command and I can't test
> right now the ldbmodify tool as samba seems to be indexing it's database
> (one thread eating 100% CPU for several minute, since I launched a
> ldbsearch on "uid" field).
> I'll try without my typo error (thank you again :) the ldbmodify command
> (to stop telling it doesn't work when the issue was between my keyboard and
> my chair) and also to tell if this CPU consumption was really due to
> indexing process.
> 2015-05-07 12:08 GMT+02:00 Luca Olivetti <luca at wetron.es>:
>> El 07/05/15 a les 11:47, mathias dufresne ha escrit:
>> > Here are the commands and their results:
>> > samba4-dc01:~# cat uid_searchflags_modification.ldif
>> > dn: CN=uid,CN=Schema,CN=Configuration,DC=domain,DC=tld
>> > changetype: modify
>> > replace: searchFlags
>> > searchFlags: 8
>> > serachFlags: 47
>> Typo? (searchFlags vs serachFlags)
>> Luca Olivetti
>> Wetron Automation Technology http://www.wetron.es
>> Tel. +34 935883004 Fax +34 935883007
>> To unsubscribe from this list go to the following URL and read the
>> instructions: https://lists.samba.org/mailman/options/samba
More information about the samba