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 178 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. (KeyForAuthorization can be MSISDN or IMSI.) 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 SELECT statement in the [Settings] section of the
sqlaccessor.genfile or thesqlaccessorjdbc.genfile identifies the database column name of the key field. In the following example, subscriber_id is 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 SELECT statement) containing the key field. In the following example, the column name of subscriber_id contains MSISDN values that serve as record keys.
Example SQL Database (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 (wlanMSISDN column contains the key MSISDN data)