Re: SMPP Maximum Password Length

Peter Christensen <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi,

What the SMPP 3.4 specs say is that it is a C-Octet string with a 
maximum of 9 octets. Also in the specs are defined that a C-Octet string 
may consists of any ASCII character and is terminated by a NULL 
terminator. This is also why almost all C-Octet String lengths 
limitations are odd numbers.

Quote from the spec:
"In the case of all C-Octet String formats, the maximum field size is 
shown as a combination of string length and the NULL terminator, i.e., 
an 8-character C-Octet String is encoded in 9 octets when the NULL 
terminator is included."

In other words, passwords longer than 8 characters are not suitable for 
SMPP.

--
Peter Christensen

M Amedeo Alaimo wrote:
> Hello,
> 
> I have a question about Kannel and the smsc-password length
> The smpp v3.4 states the maximum length is 9 characters.
> The password i was supplied from our provider is 9 characters.
> I put a line similar to this in my kannel.conf -
> smsc-username = onetwothr
> smsc-password = onetwothr
> 
> And then i get this error message when starting the bearerbox
> 
> [27034] [6] WARNING: SMPP: PDU element <password> too long (length is
> 9, should be 8)
> 2005-12-19 14:27:07 [27034] [6] WARNING: SMPP: PDU NULL terminated
> string has no NULL.
> 2005-12-19 14:27:07 [27034] [6] ERROR:
> SMPP[SMPP:host:8080/700:onetwothr:]: SMSC rejected login to transmit,
> code 0x0000000e (Invalid Password).
> 
> I was wondering if I am doing something wrong, or is Kannel's maximum
> password length 8?
> Also I am using today's cvs version.
> 
> Thanks a Bunch!
> 
> M Amedeo Alaimo
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.