sdap_idmap.c revision 2fd5864ac8eb2c4cfa0fafe7c0431a74f2ebe1fb
1933N/A Stephen Gallagher <sgallagh@redhat.com> 1933N/A This program is free software; you can redistribute it and/or modify 1933N/A it under the terms of the GNU General Public License as published by 1933N/A the Free Software Foundation; either version 3 of the License, or 1933N/A (at your option) any later version. 1933N/A This program is distributed in the hope that it will be useful, 1933N/A but WITHOUT ANY WARRANTY; without even the implied warranty of 1933N/A MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1933N/A GNU General Public License for more details. 1933N/A You should have received a copy of the GNU General Public License 1933N/A (
"Could not initialize the ID map: [%s]\n",
1933N/A /* Read in any existing mappings from the cache */ 1933N/A (
"Could not read ID mappings from the cache: [%s]\n",
1933N/A /* This should never happen */ 1933N/A /* This should never happen */ 1933N/A /* This should never happen */ 1933N/A (
"Could not add domain [%s][%s][%u] to ID map: [%s]\n",
1933N/A /* Validate that the values make sense */ 1933N/A (
"Invalid settings for range selection: [%d][%d][%d]\n",
1933N/A (
"Range size does not divide evenly. Uppermost range will " 1933N/A /* The slice is being set explicitly. 1933N/A * This may happen at system startup when we're loading 1933N/A * previously-determined slices. In the future, we may also 1933N/A * permit configuration to select the slice for a domain 1933N/A /* If slice is -1, we're being asked to pick a new slice */ 1933N/A /* In autorid compatibility mode, always start at 0 and find the first 1933N/A /* Hash the domain sid string */ 1933N/A /* Now get take the modulus of the hash val and the max_slices 1933N/A * to determine its optimal position in the range. 1933N/A /* Verify that this slice is not already in use */ 1933N/A /* This slice number matches one already registered 1933N/A * We'll try the next available slot 1933N/A /* loop around to the beginning if necessary */ 1933N/A /* Keep trying until s is NULL (meaning we got to the end 1933N/A * without matching) or we have run out of slices and gotten 1933N/A * back to the first one we tried. 1933N/A /* We looped all the way through and found no empty slots */ 1933N/A (
"Could not add domain [%s]: no free slices\n",
1933N/A (
"Adding domain [%s] as slice [%d]\n",
1933N/A /* Not adding a destructor to remove from this list, because it 1933N/A * should never be possible. Removal from this list can only 1933N/A /* Create a range object to add to the mapping */ 1933N/A /* This should never happen */ 1933N/A (
"BUG: Range maximum exceeds the global maximum: %d > %d\n",
1933N/A /* Add this domain to the map */ 1933N/A (
"Could not add domain [%s] to the map: [%d]\n",
1933N/A /* Add this domain to the SYSDB cache so it will survive reboot */