[Samba] Listing all users in a remote Samba server

Erik Torres Serrano erik at bioinfo.cu
Sat Apr 9 19:02:22 GMT 2005


Paul Gienger wrote:

>
>> I'm trying to develop a service for retrieving the entire user list 
>> of a remote samba server. The expected result is the same expected 
>> from the use of the samba command:
>>
>> net rpc user
>>
> Depending on your backend, there's several ways to go about it, 
> including querying LDAP for the entries with an appropriate filter and 
> parsing the smbpasswd file.  I believe you could also get some info 
> out of pdbedit, but that could be a bit tedious.
> What is your backend?

Ok, what I have is a standalone Samba server without ADS or LDAP. Users 
are managed in a smbpasswd file. In the other side I have a Linux box 
running webmin. Both servers are in the same LAN. What I need is an App 
to be included in webmin (that's why I need Perl) in the second box for 
listing all users in the Samba server.
I saw that net command use a RPC request but I didn't find how to do the 
same.
That's all I have :(

Regards,

Erik



More information about the samba mailing list