/*
SSSD
IPA Subdomains Module - utilities
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2015 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "providers/ipa/ipa_subdomains.h"
#include "providers/ipa/ipa_common.h"
struct ldb_context *ldb_ctx,
struct sysdb_attrs *attrs)
{
int ret;
const char *orig_dn;
return NULL;
}
if (ret) {
return NULL;
}
return NULL;
}
if (!ldb_dn_validate(dn)) {
orig_dn);
return NULL;
}
return dn;
}
{
return false;
}
/* We are only interested in the member domain objects. In IPA the
* forest root object is stored as e.g.
* cn=AD.DOM,cn=ad,cn=trusts,dc=example,dc=com. Member domains in the
* forest are children of the forest root object e.g.
* cn=SUB.AD.DOM,cn=AD.DOM,cn=ad,cn=trusts,dc=example,dc=com. Since
* the forest name is not stored in the member objects we derive it
* from the RDN of the forest root object. */
"DN too short, not a member domain\n");
return false;
}
"4th component is not 'trust', not a member domain\n");
return false;
}
"3rd component is not 'ad', not a member domain\n");
return false;
}
return true;
}