ADC installation fails in provisionTools.sh getAdminName

  • 7004781
  • 23-Apr-2012
  • 27-Apr-2012

Environment

Novell Open Enterprise Server 11 (OES11)
Domain Services for Windows
DSFW

Situation

Key information from the /var/log/YaST/y2log:

"CONFIG_LDAP_ADMIN_CONTEXT":"cn=Administrator.cn=Users.dc=domain.dc=nts.dc=novell.dc=uk","XAD_LDAP_ADMIN_CONTEXT":"cn=Administrator.cn=Users.dc=domain.dc=nts.dc=novell.dc=uk"]
2012-03-26 11:21:16 <1> MDCSVR1C(8765) [YCP] novell-edirectory/dialogs.ycp:1063
Entering Edirectory XadDomainAdminDialog()
2012-03-26 11:21:16 <1> MDCSVR1C(8765) [YCP] Edirectory.ycp:421
Edirectory.GetDomainAdministrator:executing:/opt/novell/xad/share/dcinit/provisionTools.sh
get-admin-name -a 'cn=administrator.cn=users.dc=domain.dc=nts.dc=novell.dc=uk'
-d 'domain.nts.novell.uk'
2012-03-26 11:21:16 <1> MDCSVR1C(8765) [YCP] Edirectory.ycp:431
Edirectory.GetDomainAdministrator:returned:$["exit":0, "stderr":"",
"stdout":"\n"]
2012-03-26 11:21:16 <1> MDCSVR1C(8765) [YCP] Edirectory.ycp:445
Edirectory.GetParnetDomainAdministrator:admin is
2012-03-26 11:21:45 <1> MDCSVR1C(8765) [YCP] novell-edirectory/dialogs.ycp:322
Entering Edirectory XadDomainTypeDialog()

Resolution

The domain partition is in mixed case and not being returned.  Using the grep -i switch resolves the issue.  
This has been reported to Engineering.

The workaround: add grep -i to the following section in the /opt/novell/xad/share/dcinit/provisionTools.sh script.

OBJECT_SID=`/usr/bin/ldapsearch -h $IP_ADDRESS -D "$ADMIN_NAME" -w "$ADM
_PASSWD" -s base -b "$DOMAIN_PARTITION" -x -Z -LLL dn objectsid | sed ' /^ / {; 
H; d; }; /^ /! {; x; s/\n //; }; ' | grep "dn: $DOMAIN_PARTITION" -A2 | grep obj
ectsid | awk -F "objectsid:: " '{print $2}'`

Search for OBJECT_SID in the provisionTools.sh script and change to the following:

OBJECT_SID=`/usr/bin/ldapsearch -h $IP_ADDRESS -D "$ADMIN_NAME" -w "$ADM
_PASSWD" -s base -b "$DOMAIN_PARTITION" -x -Z -LLL dn objectsid | sed ' /^ / {; 
H; d; }; /^ /! {; x; s/\n //; }; ' | grep -i "dn: $DOMAIN_PARTITION" -A2 | grep -i obj
ectsid | awk -F "objectsid:: " '{print $2}'`