Apache2-AuthenNTLM
view release on metacpan or search on metacpan
smb/smbval/smblib-priv.h view on Meta::CPAN
int prot_IDX; /* And what is the index */
void *Trans_Connect; /* The connection */
/* All these strings should be malloc'd */
char service[80], username[80], password[80], desthost[80], sock_options[80];
char address[80], myname[80];
SMB_Tree_Handle first_tree, last_tree; /* List of trees on this server */
int gid; /* Group ID, do we need it? */
int mid; /* Multiplex ID? We might need one per con */
int pid; /* Process ID */
int uid; /* Authenticated user id. */
/* It is pretty clear that we need to bust some of */
/* these out into a per TCon record, as there may */
/* be multiple TCon's per server, etc ... later */
int port; /* port to use in case not default, this is a TCPism! */
smb/smbval/smblib.c view on Meta::CPAN
SMB_Get_My_Name(con -> myname, sizeof(con -> myname));
con -> port = 0; /* No port selected */
/* Get some things we need for the SMB Header */
con -> pid = getpid();
con -> mid = con -> pid; /* This will do for now ... */
con -> uid = 0; /* Until we have done a logon, no uid */
con -> gid = getgid();
/* Now connect to the remote end, but first upper case the name of the
service we are going to call, sine some servers want it in uppercase */
for (i=0; i < strlen(server); i++)
called[i] = toupper(server[i]);
called[strlen(server)] = 0; /* Make it a string */
smb/smbval/smblib.c view on Meta::CPAN
SMB_Get_My_Name(con -> myname, sizeof(con -> myname));
con -> port = 0; /* No port selected */
/* Get some things we need for the SMB Header */
con -> pid = getpid();
con -> mid = con -> pid; /* This will do for now ... */
con -> uid = 0; /* Until we have done a logon, no uid */
con -> gid = getgid();
/* Now figure out the host portion of the service */
strcpy(temp, service);
host = strtok(temp, "/\\"); /* Separate host name portion */
strcpy(con -> desthost, host);
/* Now connect to the remote end, but first upper case the name of the
service we are going to call, sine some servers want it in uppercase */
( run in 0.641 second using v1.01-cache-2.11-cpan-5735350b133 )