Identifying Key Fields for Oracle, JDBC, and LDAP Databases
You can use the IMSI or the MSISDN as the key field for retrieving subscriber information from a SQL database or LDAP directory. You need to configure the files listed in Table 166 to identify and use the MSISDN or IMSI as the key field:
ldapaccessor.gen[Request]section and[Search/DoLdapSearch]section
Configuring gsmmap.gen for Key Field Identification
The choice of IMSI or MSISDN as the key field is identified in the
gsmmap.genfile with the KeyForAuthorization field. (KeyForAuthorizationcan beMSISDNorIMSI.) In the following examples, MSISDN is identified as the key field.Examples
gsmmap.genfile (Oracle or JDBC)[SQLDatabase]ModuleType=DatabaseDatabaseAccessorMethodName=SQL AccessorKeyForAuthorization=MSISDNgsmmap.genfile (LDAP)[LDAPDatabase]ModuleType=DatabaseDatabaseAccessorMethodName=LDAP AccessorKeyForAuthorization=MSISDNConfiguring sqlaccessor.gen or sqlaccessorjdbc.gen for Key Field Identification
For SQL databases, the
SELECTstatement in the [Settings] section of sqlaccessor.gen or sqlaccessorjdbc.gen identifies the database column name of the key field. In the following example,subscriber_idis identified as the column containing the key field.Examples
Oracle Example: sqlaccessor.gen fileConnect=my_user_name/password@servicename
SQL=SELECT service_type FROM table1 WHERE subscriber_id=@KeyToRecordJDBC Example: sqlaccessorjdbc.gen fileDriver=com/provider/jdbc/sqlserver/SQLServerDriver
Connect=DSN=jdbc:provider:driver1:dsn_name;UID=db_username;PWD=db_password
SQL=SELECT service_type FROM table1 WHERE subscriber_id=@KeyToRecordThe corresponding database must contain a column name (as specified in the
SELECTstatement) containing the key field. In the following example, the column name ofsubscriber_idcontains MSISDN values that serve as record keys.Example SQL Database (The subscriber_id column contains the key MSISDN data)
Configuring ldapaccessor.gen for Key Field Identification
For LDAP directories, the [Request] section and the [Search/DoLdapSearch] section identifies the key to the LDAP directory. You can set the KeyToRecord field in the [Request] section to either MSISDN or IMSI. The [Search/DoLdapSearch] section identifies the column name in the LDAP directory that contains the record key.
ldapaccessor.gen file[Request]KeyToRecord=keyM[Search/DoLdapSearch]Base=o=bigco.comScope=2M
NOTE: See "Configuring the LDAP Data Accessor (ldapaccessor.gen)" for more information about ldapaccessor.gen. See [Script] Section for an example LDAP script.
Example LDAP Directory (The wlanMSISDN column contains the key MSISDN data)