#!/usr/bin/python # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # # You can obtain a copy of the license at # trunk/opends/resource/legal-notices/OpenDS.LICENSE # or https://OpenDS.dev.java.net/OpenDS.LICENSE. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at # trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable, # add the following below this CDDL HEADER, with the fields enclosed # information: # Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # # Copyright 2008 Sun Microsystems, Inc. def writeInetOrgPersonTemplate(fileFd): fileFd.write('\n\n\ template: inetOrgPerson\n\ rdnAttr: cn\n\ objectclass: top\n\ objectclass: person\n\ objectclass: organizationalPerson\n\ objectclass: inetOrgPerson\n\ givenName: \n\ sn: \n\ cn: {givenName} {sn}\n\ initials: {givenName:1}{sn:1}\n\ uid: {givenName}.{sn}\n\ mail: {uid}@[suffix]\n\ userPassword: \n\ telephoneNumber: \n\ homePhone: \n\ pager: \n\ mobile: \n\ employeeNumber: \n\ l: \n\ st: \n\ street: Street\n\ postalCode: \n\ postalAddress: {cn}${street}${l}, {st} {postalCode}\n\ description: This is the description for {cn}.\n\ carLicense: \n\ seeAlso: cn=\n\ destinationIndicator: \n\ facsimileTelephoneNumber: \n\ internationaliSDNNumber: \n\ ou: \n\ physicalDeliveryOfficeName: \n\ postOfficeBox: \n\ preferredDeliveryMethod: mhs $ telephone\n\ registeredAddress: {cn}${street}${l}, {st} {postalCode}\n\ teletexTerminalIdentifier: \n\ telexNumber: $ $ \n\ title: \n\ x121Address: \n\ businessCategory: \n\ carLicense: \n\ departmentNumber: \n\ displayName: {cn}\n\ employeeType: \n\ homePostalAddress: {postalAddress}\n\ manager: cn=manager,\n\ preferredLanguage: \n\ roomNumber: \n\ secretary: cn=secretary,\n\ \n')